Skip to content

Instantly share code, notes, and snippets.

@mwolfetech
Last active January 28, 2019 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwolfetech/eceb531305645c7e0b81b393803cc523 to your computer and use it in GitHub Desktop.
Save mwolfetech/eceb531305645c7e0b81b393803cc523 to your computer and use it in GitHub Desktop.
parse/pattern-seq.clj
(ns parse.pattern-seq
(:import [java.util Scanner]))
(defn pattern-seq [pattern-keys pattern input]
(map (comp (partial zipmap pattern-keys) rest) (re-seq pattern input)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment