Expose walk!

This commit is contained in:
Ian McLerran 2024-12-30 14:04:00 -06:00
parent 53915bc6e1
commit 3fc5c638a1
No known key found for this signature in database
GPG key ID: 022CF95852BFF343

View file

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