diff options
author | Louis Pilfold <louis@lpil.uk> | 2021-03-14 14:48:56 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2021-03-14 14:48:56 +0000 |
commit | 57327135fb9a625db60c26f3c7789a386072c610 (patch) | |
tree | c6d9720c5e363649f0c5af738e6e3d6520a639d5 | |
parent | dbb008d4064358f8a7d670e2819d9fc3cf023ade (diff) | |
download | gleam_stdlib-57327135fb9a625db60c26f3c7789a386072c610.tar.gz gleam_stdlib-57327135fb9a625db60c26f3c7789a386072c610.zip |
Rename label
-rw-r--r-- | CHANGELOG.md | 10 | ||||
-rw-r--r-- | src/gleam/list.gleam | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5252792..d06ab08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,14 @@ ## Unreleased -- The `dynamic` module gains the `tuple3`, `tuple4`, `tuple5`, `tuple6` functions and - their typed equivalents `typed_tuple3`, `typed_tuple4`, `typed_tuple5`, `typed_tuple6`. +- The `list.split_while` function's second argument now has the label +`satisfying` to match the other `_while` functions in `list` and `iterator`. +- The `dynamic` module gains the `tuple3`, `tuple4`, `tuple5`, `tuple6` + functions and their typed equivalents `typed_tuple3`, `typed_tuple4`, + `typed_tuple5`, `typed_tuple6`. - The `list` modules gains the `drop_while` and `take_while` functions. -- The `iterator` module gains the `index`, `iterate`, `zip`, `scan`, `take_while` and `drop_while` functions. +- The `iterator` module gains the `index`, `iterate`, `zip`, `scan`, + `take_while` and `drop_while` functions. ## v0.14.0 - 2021-02-18 diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam index 7317242..1f430ad 100644 --- a/src/gleam/list.gleam +++ b/src/gleam/list.gleam @@ -960,7 +960,7 @@ fn do_split_while( /// pub fn split_while( list list: List(a), - while predicate: fn(a) -> Bool, + satisfying predicate: fn(a) -> Bool, ) -> tuple(List(a), List(a)) { do_split_while(list, predicate, []) } |