mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Expose walk!
This commit is contained in:
parent
53915bc6e1
commit
3fc5c638a1
1 changed files with 2 additions and 1 deletions
|
@ -74,6 +74,7 @@ module [
|
|||
concatUtf8,
|
||||
forEach!,
|
||||
forEachTry!,
|
||||
walk!,
|
||||
]
|
||||
|
||||
import Bool exposing [Bool, Eq]
|
||||
|
@ -1471,7 +1472,7 @@ forEachTry! = \list, func! ->
|
|||
##
|
||||
## This is the same as [walk], except that the step function can have effects.
|
||||
walk! : List elem, state, (state, elem => state) => state
|
||||
walk! = \list, init, func! ->
|
||||
walk! = \list, state, func! ->
|
||||
when list is
|
||||
[] -> state
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue