Clarify docs a bit

This commit is contained in:
Richard Feldman 2022-07-17 21:54:36 -04:00
parent f2175f31be
commit b92a2b8dad
No known key found for this signature in database
GPG Key ID: 7E4127D1E4241798

View File

@ -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 ->