On Tue, Jul 17, 2018 at 3:48 PM, Tomasz Sulej <tomek...@gmail.com> wrote:

>
>
> W dniu wtorek, 17 lipca 2018 22:44:27 UTC+2 użytkownik Christian Seberino
> napisał:
>>
>>
>> data are functions and vice-versa
>>>
>>
>> What do you mean? e.g. How is the [1 2 3] a "function"?
>>
>>
Also take a look in
https://github.com/clojure/clojure/tree/clojure-1.9.0/src/jvm/clojure/lang
where
you'll see that e.g. maps, sets, and vectors extend AFn which implements
IFn.


user> ([1 2 3] 0)
> 1
> user> ([1 2 3] 2)
> 3
> user> ({:a 1 :b 2} 0)
> nil
> user> ({:a 1 :b 2} :a)
> 1
>

>
>> cs
>>
> --
> 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 - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to