Hi Cary, nice to see you here!
I did not elaborate “it’s treated as ff inside conditionals only” mostly because it’s written everywhere in docs and I’d like the reader who’s indeed curious to go read docs instead of / after this luring intro.
Also, if the reader does not go REPL to play with it, trying if i.odd?..i.odd? and if i.odd?...i.odd? and all that, this writing is not for that reader :)
I suggested showing if i.odd?..i.odd? as well as if i.odd?..i.even? because several descriptions of the operator (including Bekal's) don't cover the case where the switch-on condition is the same as the switch-off condition.
You finally convinced me; added.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.