mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Clarify docs a bit
This commit is contained in:
parent
f2175f31be
commit
b92a2b8dad
1 changed files with 1 additions and 1 deletions
|
@ -860,7 +860,7 @@ split = \elements, userSplitIndex ->
|
|||
{ before, others }
|
||||
|
||||
## Like [List.map], except the transformation function returns a [Result].
|
||||
## If that function ever returns `Err`, [mapTry] immediately returns `Err`.
|
||||
## If that function ever returns `Err`, [mapTry] immediately returns that `Err`.
|
||||
## If it returns `Ok` for every element, [mapTry] returns `Ok` with the transformed list.
|
||||
mapTry : List elem, (elem -> Result ok err) -> Result (List ok) err
|
||||
mapTry = \list, toResult ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue