November 2017
Intermediate to advanced
670 pages
17h 35m
English
Here's a table that describes some of the more common intermediate functions:
|
Function |
Gleam |
Preserves type |
Preserves count |
Preserves order |
Description |
|
map |
Yes |
No |
Yes |
Yes |
This transforms each element in the list into another element in the resulting list of the same size. |
|
filter |
Yes |
Yes |
No |
Yes |
This calls a predicate function. If true, the current item is skipped and does not end up in the result list. |
|
sort |
Yes |
Yes |
Yes |
Yes |
This orders the result set by a criteria. |