Basic Sorted Set - laforge49/aatree GitHub Wiki
When configured with aatree.core.basic-opts, the Sorted Set created by the aatree.core.new-sorted-set function is an empty AASet.
Examples
(ns aatree.basic-sorted-set-examples
(:require [aatree.core :refer :all]))
(set! *warn-on-reflection* true)
(def opts (basic-opts))
(def bs1 (conj (new-sorted-set opts) :dog :cat :rabbit))
(println bs1); -> #{:cat :dog :rabbit}
(println (nth bs1 1)); -> :dog
(println (rseq bs1)); -> (:rabbit :dog :cat)