Last active
May 20, 2019 20:51
-
-
Save davidvhill/05b00295dd12135f351763f980d7ebbd to your computer and use it in GitHub Desktop.
Determine if all sequences are the same length
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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