unified formatting for walk

This commit is contained in:
Ian McLerran 2025-01-09 09:40:59 -06:00
parent 158691fb27
commit ffa1dd5703
No known key found for this signature in database
GPG key ID: 022CF95852BFF343

View file

@ -1514,7 +1514,11 @@ for_each_try! = \list, func! ->
walk! : List elem, state, (state, elem => state) => state
walk! = \list, state, func! ->
when list is
[] -> state
[] ->
state
[elem, .. as rest] ->
next_state = func!(state, elem)
walk!(rest, next_state, func!)