diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/list.gleam | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam index ed1d718..75a66ef 100644 --- a/src/gleam/list.gleam +++ b/src/gleam/list.gleam @@ -683,6 +683,12 @@ pub fn concat(lists: List(List(a))) -> List(a) { do_concat(lists, []) } +// TODO: Add deprecation attribute and then remove later. +/// This function is deprecated, see `concat` instead. +pub fn flatten(lists: List(List(a))) -> List(a) { + do_concat(lists, []) +} + /// Maps the list with the given function into a list of lists, and then flattens it. /// /// ## Examples |