Skip to content

Instantly share code, notes, and snippets.

@davidvhill
Last active May 20, 2019 20:51
Show Gist options
  • Save davidvhill/05b00295dd12135f351763f980d7ebbd to your computer and use it in GitHub Desktop.
Save davidvhill/05b00295dd12135f351763f980d7ebbd to your computer and use it in GitHub Desktop.
Determine if all sequences are the same length
(ns davidvhill)
(defn same-length?
[seqs]
(->> seqs (map count)
(into #{})
count
(= 1)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment