Re:Imperative vs. Declarative
by notaddicted on Tuesday April 02, 2013 @02:05PM
(#5481017)
Also available in python:
Edit: and out of morbid curiosity, here is the same implemented by a scan. It could be arranged as a single statement.
Edit2: rewrote swapIfGt
[ Parent
| on HN ]
There are no comments on this comment yet.