plumatic / plumbing

Prismatic's Clojure(Script) utility belt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add cljs support for include-leaves? to topological-sort

johnwalker opened this issue · comments

Hi, I was looking for low-hanging fruit, and wondered if a patch adding include-leaves? support to topological-sort in plumbing.map would be welcome. Transients are probably a good way, what do you think?

Sure. If you want to improve it, might be good to port the Clojure algorithm (which is linear-time rather than quadratic) as well. Could use transients or mutable JS objects/arrays.

Cool, thanks! #71