Skip to content

Instantly share code, notes, and snippets.

@uvtc
Last active December 25, 2015 01:28
Show Gist options
  • Save uvtc/6894751 to your computer and use it in GitHub Desktop.
Save uvtc/6894751 to your computer and use it in GitHub Desktop.
(def items ["florian" "fluid" "flack" "flask" "flan"])
;; Find the item that begins with "flu".
(println (first (filter (fn [s]
(re-find #"^flu" s))
items)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment