examples
examples copied to clipboard
All kinds of Roc examples
For example `Task.await` should link to https://www.roc-lang.org/packages/basic-cli/0.6.0/Task#await
Inspiration https://www.roc-lang.org/tutorial#tasks We should include several examples of how the desugaring works.
Inspired by https://github.com/roc-lang/roc/issues/6017
this will be unfamiliar to many non-functional programmers
So with something like this: `packages { pf: "platform/main.roc" }`
[zulip discussion](https://roc.zulipchat.com/#narrow/stream/231634-beginners/topic/.E2.9C.94.20Auto-Derived.20Abilities/near/402920796) Write an example that shows how to use Abilities. Should show - An opaque type and how to auto derive the abilities - An opaque type and show...
[roc-array2d](https://github.com/mulias/roc-array2d) Working with 2d arrays is a common pattern so it would be awesome to have a simple and a more involved example for that.
See "As an example of why tags are encouraged for data modeling" in [the tutorial](https://www.roc-lang.org/tutorial#booleans) to get the gist.
Starting point: ``` NodeID : U64 Node : { value: Str, children : List NodeID} tree : Dict NodeID Node tree = Dict.empty {} |> Dict.insert 0 { value: "hey",...