Skip to content

Instantly share code, notes, and snippets.

@henrikh
Created April 24, 2011 20:24
Show Gist options
  • Save henrikh/939848 to your computer and use it in GitHub Desktop.
Save henrikh/939848 to your computer and use it in GitHub Desktop.
List mySort := method(
if(size <= 1,
yield
self,
list(
select(v, v < self at(1)) mySort,
select(v, v >= self at(1)) mySort
) flatten
)
)
List mySort := method(
if(size <= 1,
yield
self,
list(
select(v, v < self at(1)) mySort,
select(v, v >= self at(1)) mySort
) flatten
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment