/
githubmirror
/
atom
Обзор
Документация
Войти
/
githubmirror
/
atom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
spec/fixtures/coffee.coffee
23 строки
417 B
Corey Johnson & Nathan Sobo
Get spec suite running (lots of failures)
28 авг 2012, 02:36
28 авг 2012, 02:36
12b06dd
Код
Авторство
О чём код?
class quicksort sort: (items) -> return items if items.length <= 1 pivot = items.shift() left = [] right = [] # Comment in the middle while items.length > 0 current = items.shift() if current < pivot left.push(current) else right.push(current); sort(left).concat(pivot).concat(sort(right)) noop: -> # just a noop exports.modules = quicksort