Clojure hasn't! =?

Does not exist?

+3
source share
5 answers

Does it exist:

Clojure 1.2.0
user=> (not= 1 2)
true
user=> (not= 1 1)
false
+17
source
user=> (doc not=)
-------------------------
clojure.core/not=
([x] [x y] [x y & more])
  Same as (not (= obj1 obj2))
nil

Funny, you could define! = To be the same as not = if you really wanted to:

user=> (def != not=)
#'user/!=
user=> (!= 2 2)
false
user=> (!= 2 3)
true
+16
source

clojure! char , - , . clojure

compare-and-set! 
alter-meta!
conj!
persistent!

http://clojure.github.com/clojure/ ! . , " "

+6

google "not =" , Clojure.

+4

- not= ?

0

Source: https://habr.com/ru/post/1763563/


All Articles