aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gleam/list.gleam2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam
index 97ff912..5f537b9 100644
--- a/src/gleam/list.gleam
+++ b/src/gleam/list.gleam
@@ -1096,7 +1096,7 @@ fn strict_zip_loop(
acc: List(#(a, b)),
) -> Result(List(#(a, b)), Nil) {
case one, other {
- [], [] -> Ok(acc |> reverse)
+ [], [] -> Ok(reverse(acc))
[], _ | _, [] -> Error(Nil)
[first_one, ..rest_one], [first_other, ..rest_other] ->
strict_zip_loop(rest_one, rest_other, [#(first_one, first_other), ..acc])