Example for List as usage (#159)#183
Example for List as usage (#159)#183Anton-4 merged 7 commits intoroc-lang:mainfrom bairymr:rb/list-in-roc
Conversation
|
Thanks @lukewilliamboswell sorry one more question - in the instructions (your's & existing) it says to run this step Do I run my example code's main.roc ? but then I didn't see any build folder created. I cloned the |
|
That PR hasn't merged yet. But here is the link to the If you copy that and run it in the root of the The So then you just need a file server to serve the files on your localhost. We have been using |
|
Thanks again for your help here Luke. This all makes sense now. I missed the |
What machine are you on.
|
|
I was on |
|
I apologize for the wasted effort here @bairymr, I wanted the existing pattern matching example to be expanded instead of creating a separate example. It's mentioned in the issue title but it is easy to miss, I should have linked to the existing pattern matching example. |
|
No worries at all @Anton-4 , Thank you for updating this PR with more details. This all makes sense |
Fixes #159
In this PR we are adding an example usage of lists and using the "as condition" to extract the tail of the list and continue processing the list.
I was able to test the code but I was not able to view the html files.
In the instructions here when I update the
main.rocinside my example to have "packages {pf: /static-site-gen" - I got an error stating I should have interface, app, package or platform. When I changed it to be "package" - I got another error (I am expecting a package name next, like "roc/core". Package namesmust be quoted). So I couldn't fully view the html files.