diff options
-rw-r--r-- | src/gleam/list.gleam | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam index 50c7565..3c73a56 100644 --- a/src/gleam/list.gleam +++ b/src/gleam/list.gleam @@ -839,6 +839,7 @@ fn any_tail_recursive( accumulator: Bool, ) -> Bool { case list { + _ if accumulator == True -> True [] -> accumulator [x, ..rest] -> any_tail_recursive(rest, predicate, accumulator || predicate(x)) |