Just FYI. The code part under "Tabs are printed as \t:" has a typo and shows a
new line instead of tab.
Otherwise nice work.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that po
Not quite. The -> operator basically puts the prior result in as argument
number one of the next statement, so you need to create an expression who,
when it has the result of :char put in position 1, returns a vector of eye
color and hair color
Luckily the core library has a function (juxt) whi
Closing the loop: An insteractive blog post made out Alex's detailed
explanations:
http://blog.klipse.tech/clojure/2016/11/24/stringify-clojure.html
On Mon, 21 Nov 2016 at 00:29 Alex Miller wrote:
> Stepping back... Clojure's print system has two families of functions -
> one for human consumpti
That seems like a decent list. Also sounds like most of the Clojure Alioth
contributions. :)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated
That makes sense. Thanks for the help.
Also say I wanted to get both eye-colour and hair-colour.
Could that be done by (-> human2 :char [:eye-colour :hair-colour])?
On Tuesday, 22 November 2016 11:08:45 UTC, Bost wrote:
>
> (->> human2 :char :eye-colour) or
> (-> human2 :char :eye-colour) or
>
Here's my findings:
Speed increase from most increase to least:
* Pre-sizing the HashSet - from 4.7ms to 3.7ms
* Inlining - from 4.7ms to 3.9ms
* Using point. constructor instead of ->point - from 2.4ms to 2ms
* Using non relfective HashSet init - from 2.36ms to 2.17ms
* Using iterator instead of