Skip to content

Instantly share code, notes, and snippets.

@ztellman
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save ztellman/7d87bc7a70c3a2ddb280 to your computer and use it in GitHub Desktop.

Select an option

Save ztellman/7d87bc7a70c3a2ddb280 to your computer and use it in GitHub Desktop.
(headers :uint16-be
(fn [len]
(if (zero? len)
nil-frame
[(string "iso-8859-1" :length len)
(string "iso-8859-1" :prefix :uint16-be)]))
(fn [tuple]
(if tuple
0
(count (first tuple)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment