Permutations: Difference between revisions

(Frink)
Line 3,491:
Frink's array class has built-in methods <CODE>permute[]</CODE> and <CODE>lexicographicPermute[]</CODE> which permute the elements of an array in reflected Gray code order and lexicographic order respectively.
<lang frink>a = [1,2,3,4]
println[formatTable[a.lexicographicPermute[]]]</lang>
 
{{out}}
494

edits