concept keyword in category clojure

This is an excerpt from Manning's book Clojure: The Essential Reference.
Higher order functions are functions that can accept other functions as parameters or return functions to their callers. A language needs to support functions as first class objects in the language so they can be sent around as "data" to other functions. The way function objects are created is different from language to language but historically they have been named lambdas (from the Lambda Calculus, the first widely adopted formalized notations for mathematical functions introduced by Alonzo Church around 1930 [24]). Some languages even use
lambdaas a keyword to stress that connection. Clojure doesn’t have alambdakeyword butfnis definitely Clojure’s lambda implementation.
Clojure borrows many of its basic types from Java. Strings, numbers, chars and booleans for example, share the same implementation between the two languages.
clojure.lang.Symbolandclojure.lang.Keywordare specific to Clojure and functions likesymbolandkeywordcreate the new corresponding instances:
The presence of a forward slash "/" in the name of a symbol or keyword assigns them to a specific namespace. To access the different parts of a qualified [232]
symbolwe use the functionnameand namespace:(def ax (symbol "a/x")) ; #1 (def bx (symbol "b/x")) [(name ax) (name bx)] ; #2 ;; ["x" "x"] (= ax bx) ; #3 ;; false [(namespace ax) (namespace bx)] ; #4 ;; ["a" "b"]The equivalent way to assign a symbol or keyword to a namespace is to use their two arguments constructors:

This is an excerpt from Manning's book Clojure in Action, Second Edition.
Essentially what’s happening when you quote a symbol is you’re treating the symbol as data and not code. In practice you’ll almost never quote symbols to use them as data because Clojure has a special type specifically for this use case: the keyword. A keyword is sort of like an autoquoted symbol: keywords never reference some other value and always evaluate to themselves. Keyword syntax is almost like symbol syntax, except keywords always begin with a colon. Here are some examples of keywords: :foo, :foo/bar, :->foo, and :+. You’ll end up using keywords very often in your Clojure code, typically as keys in hash maps and as enumerated values.
You can construct keywords and symbols from strings using the keyword and symbol functions, which take a string of the name and optionally a string of the namespace. Likewise, you can examine keywords and functions using the name and namespace functions. For example:

This is an excerpt from Manning's book The Joy of Clojure, Second Edition.
The similarities stand out when comparing the following examples of Clojure code. Each example shows all possible pairs formed using one of the keywords a or b and a positive odd integer less than 5. The first example uses what’s known as a for comprehension and returns a data structure of the pairs:
If you’ll recall from section 2.1.6, keywords are self-evaluating types that are prefixed by one or more colons, as shown next:
:a-keyword ;;=> :a-keyword ::also-a-keyword ;;=> :user/also-a-keywordKnowing how to type a keyword is important,[5] but the purpose of Clojure keywords can sometimes lead to confusion for first-time Clojure programmers, because their analogue isn’t often found[6] in other languages. This section attempts to alleviate the confusion and provides some tips for how keywords are typically used.
Keywords always refer to themselves, whereas symbols don’t. What this means is that the keyword :magma always has the value :magma, whereas the symbol ruins may refer to any legal Clojure value or reference.
So far, we’ve somewhat oversimplified the capabilities of keywords. Although they’re self-evaluating, they’re also sometimes evaluated as functions. When a keyword appears in the function position, it’s treated as a function. Therefore, another important reason to use keywords as map keys is that they’re also functions that take a map as an argument to perform lookups of themselves:
(:zombies population) ;=> 2700 (println (/ (:zombies population) (:humans population)) "zombies per capita") ; 300 zombies per capitaUsing keywords as map-lookup functions leads to much more concise code.