Permutations: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) (removed langur language example (for the moment)) |
|||
Line 3,713: | Line 3,713: | ||
[d, c, b, a] |
[d, c, b, a] |
||
</pre> |
</pre> |
||
=={{header|Langur}}== |
|||
The permute() function is not limited to numbers, though that's what we show here.... |
|||
<lang Langur>map f writeln(.e), permute series 1..3</lang> |
|||
{{out}} |
|||
<pre>[1, 2, 3] |
|||
[1, 3, 2] |
|||
[2, 1, 3] |
|||
[2, 3, 1] |
|||
[3, 1, 2] |
|||
[3, 2, 1]</pre> |
|||
=={{header|LFE}}== |
=={{header|LFE}}== |