Sorting algorithms/Gnome sort: Difference between revisions
→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)"
(→{{header|ALGOL 68}}: Sort numbers, as specified in the task) |
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
||
Line 3,860:
Note: All data in VBScript is of type Variant. Thus the code can sort many different types of data without code modification.
=={{header|V (Vlang)}}==
{{trans|go}}
<syntaxhighlight lang="v (vlang)">fn main() {
mut a := [170, 45, 75, -90, -802, 24, 2, 66]
println("before: $a")
|