Skip to content

Instantly share code, notes, and snippets.

@tnoda
Created November 12, 2014 03:55
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 tnoda/2f399beadd2202d4f8bb to your computer and use it in GitHub Desktop.
Save tnoda/2f399beadd2202d4f8bb to your computer and use it in GitHub Desktop.
(let [v ["ジョ" "ン" "ボ" "ヴィ"]
a (reverse ["ジョン" "ボン" "ジョヴィ"])
s (->> (repeatedly #(str (rand-nth v) (rand-nth v)))
(reductions #(cons %2 %) [])
(drop-while #(not= a (take 3 %)))
first)]
(println (->> (reverse s)
(interpose "・")
(apply str))
"\n"
(count s)
"Bon Jovis
_人人人人人人人人人人人人人人_
> You Give Love a Bad Name <
 ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y ̄"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment