diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/list.gleam | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam index 52e98ff..85afeec 100644 --- a/src/gleam/list.gleam +++ b/src/gleam/list.gleam @@ -317,7 +317,7 @@ fn do_filter(list: List(a), fun: fn(a) -> Bool, acc: List(a)) -> List(a) { /// [] /// ``` /// -pub fn filter(list: List(a), for predicate: fn(a) -> Bool) -> List(a) { +pub fn filter(list: List(a), keeping predicate: fn(a) -> Bool) -> List(a) { do_filter(list, predicate, []) } |