mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 08:17:40 +03:00
format roc code
This commit is contained in:
parent
8a611fdb34
commit
eefba96a16
@ -379,7 +379,6 @@ walk = \list, state, func ->
|
||||
Continue newState -> newState
|
||||
Break void -> List.unreachable void
|
||||
|
||||
|
||||
## Note that in other languages, `walkBackwards` is sometimes called `reduceRight`,
|
||||
## `fold`, `foldRight`, or `foldr`.
|
||||
walkBackwards : List elem, state, (state, elem -> state) -> state
|
||||
@ -820,4 +819,5 @@ iterHelp = \list, state, f, index, length ->
|
||||
else
|
||||
Continue state
|
||||
|
||||
## useful for typechecking guaranteed-unreachable cases
|
||||
unreachable : [] -> a
|
||||
|
Loading…
Reference in New Issue
Block a user