all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
List do (
|
||||
selectionSortInPlace := method(
|
||||
size repeat(idx,
|
||||
swapIndices(idx, indexOf(slice(idx, size) min))
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
l := list(-1, 4, 2, -9)
|
||||
l selectionSortInPlace println # ==> list(-9, -1, 2, 4)
|
||||
Loading…
Add table
Add a link
Reference in a new issue