Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. (defn remove-first
  2. [lis e]
  3. (loop [result []
  4. others lis]
  5. (let [cur (first others)]
  6. (cond
  7. (empty? others) result
  8. (= cur e) (concat result (rest others))
  9. :else (recur (conj result cur)
  10. (rest others))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement