aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2024-12-05 23:49:19 +0000
committerLouis Pilfold <louis@lpil.uk>2024-12-05 23:49:19 +0000
commitcdb45f406f0ffd97245cae2deeca4f376b272a6f (patch)
tree72f786f2b2c4b5d4bb619b4f1bf7d5b783cf4da5 /src
parent448d45a7a5287d90d211b5387f565318fbe2e90e (diff)
downloadgleam_stdlib-cdb45f406f0ffd97245cae2deeca4f376b272a6f.tar.gz
gleam_stdlib-cdb45f406f0ffd97245cae2deeca4f376b272a6f.zip
Changes!
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])