Permutations: Difference between revisions

Content added Content deleted
(→‎{{header|Julia}}: permutations is no longer part of the core language)
Line 3,197: Line 3,197:


=={{header|Julia}}==
=={{header|Julia}}==
Julia has native support for permutation creation and processing. <tt>permutations(v)</tt> creates an iterator over all permutations of <tt>v</tt>.
Julia has support for permutation creation and processing via the <tt>Combinatorics</tt> package. <tt>permutations(v)</tt> creates an iterator over all permutations of <tt>v</tt>.
<lang Julia>
<lang Julia>
using Combinatorics

term = "RCode"
term = "RCode"
i = 0
i = 0