mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 19:32:17 +00:00
fix order of Task.sequence
This commit is contained in:
parent
4a5c00e81e
commit
aabe75ff87
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ batch = \current -> \next ->
|
|||
##
|
||||
seq : List (Task ok err) -> Task (List ok) err
|
||||
seq = \tasks ->
|
||||
List.walk tasks (ok []) \state, task ->
|
||||
List.walkBackwards tasks (ok []) \state, task ->
|
||||
value <- task |> await
|
||||
|
||||
state |> map \values -> List.append values value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue