Jump to content

Sorting algorithms/Permutation sort: Difference between revisions

m
→‎{{header|Tcl}}: use better template
m (→‎{{header|Tcl}}: use better template)
Line 780:
 
=={{header|Tcl}}==
{{tcllib|struct::list}}
using package <code>struct::list</code> from {{libheader|tcllib}}. The <code>firstperm</code> procedure actually returns the lexicographically first permutation of the input list. However, to meet the letter of the problem, let's loop:
<lang tcl>package require Tcl 8.5
package require struct::list
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.