Skip to content
Bill La Forge edited this page Oct 15, 2015 · 7 revisions

When configured with aatree.core.standard-opts, the aatree.core.new-sorted-set function creates a standard, empty Clojure sorted-set.

(ns aatree.standard-sorted-set-examples
  (:require [aatree.core :refer :all]))

(set! *warn-on-reflection* true)

(def opts (standard-opts))

(def bs1 (conj (new-sorted-set opts) :dog :cat :rabbit))
(println bs1); -> #{:cat :dog :rabbit}

(println (rseq bs1)); -> (:rabbit :dog :cat)

Clone this wiki locally