How to check the equality of strings in clojure without invoking java.lang.String?

Equality in Clojure (the = function) always tests value, not identity, so two strings are = if they have the same contents.

For most Java types, including String, Clojure = dispatches to Java .equals. String.equals is defined as “represents the same sequence of characters.”

If you want to test identity (Are these pointers to the same location in memory?) use the identical? function.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)