-
Notifications
You must be signed in to change notification settings - Fork 17
Example for List as usage (#159) #183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.roc
inside 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.