Anonymous user
Permutations: Difference between revisions
→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
(→{{header|Rust}}: Added Rust) |
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
||
Line 2,835:
=={{header|Kotlin}}==
Translation of C# recursive 'insert' solution in Wikipedia article on Permutations:
<lang scala>// version 1.1.
fun <T> permute(input: List<T>): List<List<T>> {
Line 2,848:
}
}
return perms
}
|