File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 3
3
## Unreleased
4
4
5
5
- The ` list ` module gains the ` list.map2 ` function.
6
- - ` flatten ` has been renamed to ` concat ` in the ` list ` module.
6
+ - ` flatten ` has been renamed to ` concat ` in the ` list ` module. The old name is
7
+ still available as an alias and is deprecated.
7
8
8
9
## v0.29.2 - 2023-06-21
9
10
Original file line number Diff line number Diff line change @@ -683,6 +683,12 @@ pub fn concat(lists: List(List(a))) -> List(a) {
683
683
do_concat ( lists , [ ] )
684
684
}
685
685
686
+ // TODO: Add deprecation attribute and then remove later.
687
+ /// This function is deprecated, see `concat` instead.
688
+ pub fn flatten ( lists : List ( List ( a) ) ) -> List ( a) {
689
+ do_concat ( lists , [ ] )
690
+ }
691
+
686
692
/// Maps the list with the given function into a list of lists, and then flattens it.
687
693
///
688
694
/// ## Examples
You can’t perform that action at this time.
0 commit comments