concept group in category clojure

appears as: group, group, groups, groups, The group
Clojure: The Essential Reference

This is an excerpt from Manning's book Clojure: The Essential Reference.

[20] For places in the Clojure source where the group of 20 Java methods is visible see for example: clojure.lang.IFn

  • Determining the largest/smallest of a set or group of items.
  • group-by is a flexible function with a broad application scope. We can use group-by to create dictionary-like data structures out of plain sequences, using the grouping function to decide how the values should aggregate. In conjunction with juxt, group-by allows to further restrict the grouping rules. The use of juxt determines the creation of a composite key vector:

    (group-by (juxt odd? (comp count str)) (range 20)) ; #1
    ;; {[false 1] [0 2 4 6 8]
    ;;  [true 1]  [1 3 5 7 9]
    ;;  [false 2] [10 12 14 16 18]
    ;;  [true 2]  [11 13 15 17 19]}
    Figure 22.2. The inspector visualization table for a group of uniform data.
    43 inspector table