The following returns eq, but I want it to return ne. What gives?
(let ((x 1)
(y 2))
(case x
(y 'eq)
(_ 'ne)))In Erlang, however, the following returns ne, as desired.
| [cheshire "5.5.0"] | |
| [com.fasterxml.jackson.core/jackson-core "2.5.3"] | |
| [com.fasterxml.jackson.dataformat/jackson-dataformat-cbor "2.5.3"] | |
| [com.fasterxml.jackson.dataformat/jackson-dataformat-smile "2.5.3"] | |
| [tigris "0.1.1"] | |
| [cider/cider-nrepl "0.9.1"] | |
| [org.tcrawley/dynapath "0.2.3" :exclusions [[org.clojure/clojure]]] | |
| [clojure-complete "0.2.3" :exclusions [[org.clojure/clojure]]] | |
| [expectations "2.1.3" :exclusions [[org.clojure/tools.reader]]] | |
| [joda-time "2.7"] |
| Polymorphic function reduce could not be applied to arguments: | |
| Polymorphic Variables: | |
| a | |
| c | |
| Domains: | |
| [a c -> (t/U (Reduced a) a)] a (t/Option (Seqable c)) | |
| Arguments: | |
| [(t/U Number nil) Character -> (t/U nil Number) :filters {:then (& (! (t/U nil false) 0) (is Number 0)), :else tt}] (t/Val 0) String |
| %% I can't seem to commit the map literal syntax to memory, | |
| %% so I'm making this gist. | |
| Map = #{testing => 123, | |
| cool => true, | |
| heterogeneous => [<<"You">>, "know", it]}. | |
| %% => #{cool=>true,heterogeneous=>[<<89,111,117>>,[107,110,111,119],it],testing=>123} | |
| is_map(Map). | |
| %% => true |
| rlwrap -a 'dummy' kjell -pa ebin -pa deps/*/ebin -I include -I deps/gpb/include |
The following returns eq, but I want it to return ne. What gives?
(let ((x 1)
(y 2))
(case x
(y 'eq)
(_ 'ne)))In Erlang, however, the following returns ne, as desired.
> (ld-util:get-versions)
(#(erlang "18")
#(emulator "7.1")
#(driver-version "3.2")
#(lfe "0.10.0")
#(lutil "0.7.0")
#(lodox "0.0.2"))| function et -d 'Start an Emacs client in the terminal, | |
| starting the server as necessary.' | |
| emacsclient -cnw -a "" $argv | |
| end | |
| function ec -d 'Start an Emacs client in the Cocoa GUI, | |
| starting the server as necessary.' | |
| emacsclient -cna "" $argv | |
| end |
| function sed | |
| docker run --rm yurrriq/sed -v (PWD):/app | |
| end |
| # http://stackoverflow.com/a/14630424/1793234 | |
| # As of Git version 1.7.12, you may now use | |
| git rebase -i --root |