clojure

New to Clojure? Try the #beginners channel. Official docs: https://clojure.org/ Searchable message archives: https://clojurians-log.clojureverse.org/
clyfe 2020-12-20T00:27:47.245400Z

same thing, but if you're set on putting it in html can do a (clojure.string/replace html-str #"\{CSRF-TOKEN\}" token)

jumar 2020-12-20T07:43:19.247300Z

The first thing to ask is why do you think you have memory leak?

teodorlu 2020-12-20T11:49:40.263600Z

Where is the right place to read docs for clojure.lang.Sequential? (The protocol)

teodorlu 2020-12-20T11:49:54.263700Z

"read Clojure's source"?

clyfe 2020-12-20T11:52:02.264100Z

https://insideclojure.org/2015/01/02/sequences/

👍 1
clyfe 2020-12-20T11:53:08.264500Z

"Java perspective" part

👍 1
teodorlu 2020-12-20T12:04:50.265300Z

in case others are curious, there's a relevant Lambda Island episode: https://lambdaisland.com/episodes/clojure-seq-seqable.

seancorfield 2020-12-20T19:44:56.274Z

@teodorlu clojure.lang.Sequential is a Java interface, not a protocol. The sequential? predicate specifically tests for that interface, in the same way that the seq? predicate specifically tests for the ISeq interface. The latter actually has methods. The former is just a "marker" interface.

✔️ 1
seancorfield 2020-12-20T19:46:38.274200Z

That Inside Clojure article is interesting in that it talks about seqable? which we do have now.

teodorlu 2020-12-20T22:33:45.275200Z

Thanks for the clarification :thumbsup: