Permutations/Derangements: Difference between revisions
Content added Content deleted
(added FreeBASIC) |
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
||
Line 1,691: | Line 1,691: | ||
Computed approximation to !20 (15 significant digits): 895014631192902000</lang> |
Computed approximation to !20 (15 significant digits): 895014631192902000</lang> |
||
=={{header|Kotlin}}== |
=={{header|Kotlin}}== |
||
<lang scala>// version 1.1. |
<lang scala>// version 1.1.2 |
||
fun <T> permute(input: List<T>): List<List<T>> { |
fun <T> permute(input: List<T>): List<List<T>> { |