SHARE
TWEET

Untitled

a guest Jan 4th, 2013 22 Never
  1. (defn pos [ls elem]
  2.   (cond (empty? ls) -1
  3.         (= (first ls) elem) 0
  4.         :else (+ 1 (pos (rest ls) elem))))
RAW Paste Data
Top