update colors for tutorial

This commit is contained in:
Luke Boswell 2023-03-12 15:42:43 +11:00
parent 0e65f10744
commit 373da8d5e1
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
2 changed files with 44 additions and 57 deletions

View file

@ -741,7 +741,7 @@ List.map ["a", "b", "c"] Foo
These two versions compile to the same thing. As a convenience, Roc lets you specify a tag name where a function is expected; when you do this, the compiler infers that you want a function which uses all of its arguments as the payload to the given tag.
### [`List.any` and `List.all`](#list-any-and-list-all) {#list-any-and-list-all}
### [List.any and List.all](#list-any-and-list-all) {#list-any-and-list-all}
There are several functions that work like `List.map`, they walk through each element of a list and do something with it. Another is `List.any`, which returns `Bool.true` if calling the given function on any element in the list returns `Bool.true`: