Skip to content

Instantly share code, notes, and snippets.

@raek
Created December 29, 2011 23:11
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 raek/1536636 to your computer and use it in GitHub Desktop.
Save raek/1536636 to your computer and use it in GitHub Desktop.
(defn token-seq [tokenstream termatt]
(lazy-seq
(when (.incrementToken tokenstream)
(cons (.term termatt)
(token-seq tokenstream termatt)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment