Re: Why ('f 1) does deliver nil?

2019-10-26 Thread Johannes
Thank you for the explanation; until now I associated this behavior only to keywords not not symbols. Johannes Am Samstag, 26. Oktober 2019 19:12:11 UTC+2 schrieb Andy Fingerhut: > > Both symbols and keywords, when placed inside of an expression in the > first position, e.g. (:my-keyword my-map

Re: Why ('f 1) does deliver nil?

2019-10-26 Thread Faiz Ahmed Mushtak Halde
Well, Symbols implement the IFn and if you look at the invoke method, the arg passed to it is considered to be a map (I guess more like an environment it expects in which it will try to look for the symbol) Anyways, since you've passed in a number, the look up in RT.getFrom leads to a null henc

Re: Why ('f 1) does deliver nil?

2019-10-26 Thread Andy Fingerhut
Both symbols and keywords, when placed inside of an expression in the first position, e.g. (:my-keyword my-map), or ('some-symbol my-map), behave as functions that "look themselves up" in the map that is the first argument, and if that symbol or keyword is a key in that map, the associated value is

Why ('f 1) does deliver nil?

2019-10-26 Thread Johannes
... instead of an exception? Can anyone explain it to me? Johannes -- 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

Why ('f 1) does deliver nil?

2019-10-26 Thread Johannes
... instead of an exception? Can anyone explain it to me? Johannes -- 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

Re: [ANN] Cognitect Labs' aws-api 0.0.8.391

2019-10-26 Thread David Chelimsky
Corrected links: README: https://github.com/cognitect-labs/aws-api/ API Docs: https://cognitect-labs.github.io/aws-api/ Changelog: https://github.com/cognitect-labs/aws-api/blob/master/CHANGES.md Latest Releases of api, endpoints, and all services: https://github.com/cognitect-labs/aws-api/blob/ma