We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd94fd commit 1cd95fbCopy full SHA for 1cd95fb
src/gleam/list.gleam
@@ -1443,14 +1443,6 @@ pub fn partition(
1443
/// [[1, 2], [2, 1]]
1444
/// ```
1445
///
1446
-/// Notice, that this function is not tail recursive:
1447
-///
1448
-/// The execution limits on permutations are iterations rather than stack size;
1449
-/// for a permutation with `10` items a non tail recursive algorithm will at
1450
-/// worst built up a stack size of `10` before it goes back to `1` eventually,
1451
-/// while a permutation of say `5_000` items will not compute, in reasonable
1452
-/// time, despite not exceeding stack size.
1453
1454
pub fn permutations(l: List(a)) -> List(List(a)) {
1455
case l {
1456
[] -> [[]]
0 commit comments