This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-16
Channels
- # announcements (3)
- # babashka (48)
- # beginners (35)
- # calva (3)
- # chlorine-clover (5)
- # clj-kondo (9)
- # cljdoc (20)
- # cljsrn (1)
- # clojure (55)
- # clojure-europe (33)
- # clojure-nl (3)
- # clojure-norway (6)
- # clojure-spec (7)
- # clojure-uk (27)
- # clojurescript (95)
- # closh (1)
- # conjure (1)
- # cursive (16)
- # datomic (30)
- # emacs (7)
- # honeysql (1)
- # hugsql (2)
- # introduce-yourself (2)
- # jobs (1)
- # lsp (30)
- # malli (22)
- # nbb (11)
- # news-and-articles (1)
- # off-topic (8)
- # pathom (21)
- # polylith (39)
- # portal (4)
- # practicalli (4)
- # protojure (1)
- # re-frame (14)
- # releases (1)
- # restql (1)
- # reveal (24)
- # sci (1)
- # sql (21)
- # vim (11)
- # xtdb (33)
Hello, was re-purposing your REPL example here - https://youtu.be/rQ802kSaip4 for a presentation I am planning to do on Clojure. I realised there seems to be some issues here - https://practical.li/clojure/simple-projects/data-transformation/most-common-word.html .
The regex doesn't seem to work right compared to (re-seq #"[a-zA-Z0-9|']+")
(perhaps because my example text has apostrophes. But I also there's something wrong with (slurp "
not sure if it is just me :thinking_face:
on the last, looks like it's https now, also it's gzipping by default so slurp isn't going to work
@zackteo I can fix the gzip with a bit of java interop... give me 10 mins 🙂
The tutorial now decompresses the book from Project Guttenburg so that it can be processed. Interestingly enough the code does still produce a result in the right shape even though the book is compressed. However the actual values in the data structure are not what we are looking for :rolling_on_the_floor_laughing: The simple version of the regex works now I've typed it properly, I had a space after w which obviously breaks things a bit. Just pushing a new version of the book now, so should be ready in about 5 minutes https://practical.li/clojure/simple-projects/data-transformation/most-common-word.html