Drop unnecessary parens

This commit is contained in:
Richard Feldman 2022-07-22 09:30:54 -04:00 committed by Folkert
parent f3b8025d8d
commit 46abf539bf
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -770,7 +770,7 @@ maxHelp = \list, initial ->
## You may know a similar function named `concatMap` in other languages.
joinMap : List a, (a -> List b) -> List b
joinMap = \list, mapper ->
List.walk list [] (\state, elem -> List.concat state (mapper elem))
List.walk list [] \state, elem -> List.concat state (mapper elem)
## Returns the first element of the list satisfying a predicate function.
## If no satisfying element is found, an `Err NotFound` is returned.