Skip to content

Commit cdb45f4

Browse files
committed
Changes!
1 parent 448d45a commit cdb45f4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
## Unreleased
44

5-
- Comparing two `Dict`s of equal size has been optimised on the JavaScript
6-
target.
7-
5+
- Improved the performance of comparing two `Dict`s of equal size on the
6+
JavaScript target.
87
- Improved the performance of `string.drop_start`.
9-
108
- Improved the performance of `list.strict_zip`.
119

1210
## v0.45.0 - 2024-11-28

src/gleam/list.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ fn strict_zip_loop(
10961096
acc: List(#(a, b)),
10971097
) -> Result(List(#(a, b)), Nil) {
10981098
case one, other {
1099-
[], [] -> Ok(acc |> reverse)
1099+
[], [] -> Ok(reverse(acc))
11001100
[], _ | _, [] -> Error(Nil)
11011101
[first_one, ..rest_one], [first_other, ..rest_other] ->
11021102
strict_zip_loop(rest_one, rest_other, [#(first_one, first_other), ..acc])

0 commit comments

Comments
 (0)