Skip to content

Commit fc1cf9b

Browse files
isaacabrahamTheAngryByrd
authored andcommitted
traverseAsyncResultA'
1 parent 0f49040 commit fc1cf9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FsToolkit.ErrorHandling/List.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module List =
7777
let! fR = f x |> AsyncResult.mapError List.singleton
7878
match s, fR with
7979
| Ok ys, Ok y ->
80-
return! traverseAsyncResultA' (AsyncResult.retn (ys @ [y])) f xs
80+
return! traverseAsyncResultA' (AsyncResult.retn (y :: ys)) f xs
8181
| Error errs, Error e ->
8282
return! traverseAsyncResultA' (AsyncResult.returnError (errs @ e)) f xs
8383
| Ok _, Error e | Error e , Ok _ ->

0 commit comments

Comments
 (0)