Re: if nil is true

2017-01-31 Thread Sayth Renshaw
On Tuesday, 31 January 2017 10:25:31 UTC+11, Leon Grapenthin wrote: > > Hi Sayth, welcome to Clojure. > > Read like this: > > (nil? nil) > ;-> true > Is nil nil? True. > > (true? nil) > ;-> false > Is nil true? False. > > Kind regards, > Leon. > > Thanks Leon. Yeah it does make sense it just

Re: if nil is true

2017-01-30 Thread Leon Grapenthin
Hi Sayth, welcome to Clojure. Read like this: (nil? nil) ;-> true Is nil nil? True. (true? nil) ;-> false Is nil true? False. Kind regards, Leon. On Monday, January 30, 2017 at 8:34:09 AM UTC+1, Sayth Renshaw wrote: > > Hi > > If nil is true > > clojure-noob

Re: if nil is true

2017-01-30 Thread Mars0i
On Monday, January 30, 2017 at 1:34:09 AM UTC-6, Sayth Renshaw wrote: > > Hi > > If nil is true > > clojure-noob.core> (nil? nil) > true > Similarly, user=> (false? false) true -- You received this message because you are subscribed to the Google Groups &q

Re: if nil is true

2017-01-30 Thread Andy Fingerhut
enshaw wrote: > > > On Monday, 30 January 2017 19:02:08 UTC+11, Sayth Renshaw wrote: >> >> >> >> On Monday, 30 January 2017 18:53:44 UTC+11, Alan Forrester wrote: >>> >>> >>> > Hi >>> > >>> > If nil is true

Re: if nil is true

2017-01-30 Thread Sayth Renshaw
On Monday, 30 January 2017 19:02:08 UTC+11, Sayth Renshaw wrote: > > > > On Monday, 30 January 2017 18:53:44 UTC+11, Alan Forrester wrote: >> >> >> > Hi >> > >> > If nil is true >> > >> > clojure-noob.core> (nil? nil)

Re: if nil is true

2017-01-30 Thread Sayth Renshaw
On Monday, 30 January 2017 18:53:44 UTC+11, Alan Forrester wrote: > > > > Hi > > > > If nil is true > > > > clojure-noob.core> (nil? nil) > > true > > > > Then why doesn't nil return from this statement as the first true valu

Re: if nil is true

2017-01-29 Thread 'Alan Forrester' via Clojure
On 30 Jan 2017, at 07:34, Sayth Renshaw wrote: > Hi > > If nil is true > > clojure-noob.core> (nil? nil) > true > > Then why doesn't nil return from this statement as the first true value? This expression is a function invocation. The function is the first it

if nil is true

2017-01-29 Thread Sayth Renshaw
Hi If nil is true clojure-noob.core> (nil? nil) true Then why doesn't nil return from this statement as the first true value? clojure-noob.core> (or false nil true) true Sausages does as expected. clojure-noob.core> (or false "sausages" true) "sausages" Th