I hereby claim:
- I am ereteog on github.
- I am guigui (https://keybase.io/guigui) on keybase.
- I have a public key ASCWwiBhYfOID1as0GQZl2Iq6EsSQVd_cugrCaJxBEWt3go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(ns markov.core) | |
(defn transform | |
[words] | |
(->> words | |
(partition 2 1) | |
(reduce (fn [acc [w next-w]] | |
(update-in acc | |
[w next-w] | |
(fnil inc 0))) |