(= 1 10) => false (= 2 10) => false (= 10 10) => true (= false false) => true (= (= 1 10) (= 2 10)) => true
class BoolTest { public static void main(String args[]) { System.out.println(Boolean.TRUE.equals(System.class) == Boolean.FALSE.equals(System.class)); // prints "true", System.class being an arbitrary choice, like the choice of "identity", a fn. } } The domain for functions true? and false? is arbitrarily vast (possibly, the entire set of values as I believe they never throw exceptions), and the range is the limited space [True, False]. Very few domain-values would, expectedly, map to True, as it is a strict equality check. Your expression checks the equality of false with itself. On Sat, Sep 2, 2017 at 9:36 AM, Rostislav Svoboda < rostislav.svob...@gmail.com> wrote: > > identity isn't a boolean, so neither true? nor false? should return true > for it > > But then why it should return 'false'? > > 2017-09-02 6:04 GMT+02:00 Justin Smith <noisesm...@gmail.com>: > > identity isn't a boolean, so neither true? nor false? should return true > for > > it > > > > > > On Fri, Sep 1, 2017 at 9:01 PM Rostislav Svoboda > > <rostislav.svob...@gmail.com> wrote: > >> > >> > (true? identity) -> false > >> > (false? identity) -> false > >> > (= false false) -> true > >> > >> Well: > >> (= identity identity) -> true > >> > >> My math books say booleans can't be true and false in the same time. > >> > >> -- > >> 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. > > -- > 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.