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
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.core> (nil? nil)
> true
>
> Th
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 "Clojure" group.
To post to this group
Sayth, check out these examples and see if they clarify anything for you.
user=> nil
nil
user=> (if nil "nil is truthy" "nil is falsey")
"nil is falsey"
user=> (nil? nil)
true
user=> (if (nil? nil) "(nil? nil)=true is truthy" "(nil? nil)=true is
falsey")
"(nil? nil)=true is truthy"
user=> (num
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)
>> > true
>> >
>> > Then why doesn't nil return from this statement as t
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 value?
>
> This expression is a function invocation. The function is
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 item in the
list and the argument