Skip to content

Commit

Permalink
Fix inexhaustive match
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Nov 30, 2023
1 parent e08a63e commit b8bb7eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gleam/list.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2117,8 +2117,7 @@ pub fn transpose(list_of_list: List(List(a))) -> List(List(a)) {
fn do_shuffle_pair_unwrap(list: List(#(Float, a)), acc: List(a)) -> List(a) {
case list {
[] -> acc
_ -> {
let [elem_pair, ..enumerable] = list
[elem_pair, ..enumerable] ->
do_shuffle_pair_unwrap(enumerable, [elem_pair.1, ..acc])
}
}
Expand Down

0 comments on commit b8bb7eb

Please sign in to comment.