diff options
-rw-r--r-- | src/gleam/list.gleam | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam index ff8eb7d..91d6cf4 100644 --- a/src/gleam/list.gleam +++ b/src/gleam/list.gleam @@ -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]) } } |