Sorting algorithms/Insertion sort: Difference between revisions
Content added Content deleted
(→{{header|TI-83 BASIC}}: ??? duplicated below) |
(→{{header|Scala}}: Incorrect edit by Gerard Schildberger. Please stay away from things you don't know about.) |
||
Line 3,130: | Line 3,130: | ||
}</lang> |
}</lang> |
||
=={{header| |
=={{header|SASL}}== |
||
===version 1=== |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
===version 2=== |
|||
Copied from SASL manual, Appendix II, answer (2)(a) |
Copied from SASL manual, Appendix II, answer (2)(a) |
||
<lang SASL> |
<lang SASL>DEF |
||
DEF |
|||
sort () = () |
sort () = () |
||
sort (a : x) = insert a (sort x) |
sort (a : x) = insert a (sort x) |
||
Line 3,149: | Line 3,139: | ||
b : insert a x |
b : insert a x |
||
?</lang> |
?</lang> |
||
=={{header|Scala}}== |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Scheme}}== |
=={{header|Scheme}}== |