J(a language of the APL family) excels at this problem domain. It is
functional and very efficient.

conv =: +//....@*/

It looks like line noise but that is the whole implementation

(1 1 ) conv (1 1)
=> 1 2 1

http://www.jsoftware.com/

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to