Liking cljdoc? Tell your friends :D

hara.reflect.pretty.display


displayclj

(display grp eles)

formats an output for

(->> (query/query-class (type []) ["create"]) (display {:select-terms [:params]})) ;;=> ([java.util.List] [clojure.lang.ISeq] ;; [clojure.lang.IReduceInit] [[Ljava.lang.Object;] ;; [java.lang.Iterable])

formats an output for 

(->> (query/query-class (type []) ["create"])
     (display {:select-terms [:params]}))
;;=> ([java.util.List] [clojure.lang.ISeq]
;;    [clojure.lang.IReduceInit] [[Ljava.lang.Object;]
;;    [java.lang.Iterable])
raw docstring

first-terms-fnclj

(first-terms-fn grp)

creates a function that returns the first element of the list

((display/first-terms-fn {:first true}) [1 2 3]) => 1

creates a function that returns the first element of the list

((display/first-terms-fn {:first true}) [1 2 3])
=> 1
raw docstring

merge-terms-fnclj

(merge-terms-fn grp)

creates a function that returns the first element of the list

(-> (query/query-class (type []) ["create"]) ((display/merge-terms-fn {:merge true}))) ;;=> #[create :: ([java.util.List]), ([clojure.lang.ISeq]), ;; ([clojure.lang.IReduceInit]), ([java.lang.Object[]]), ;; ([java.lang.Iterable])]

creates a function that returns the first element of the list

(-> (query/query-class (type []) ["create"])
    ((display/merge-terms-fn {:merge true})))
;;=> #[create :: ([java.util.List]), ([clojure.lang.ISeq]),
;;               ([clojure.lang.IReduceInit]), ([java.lang.Object[]]),
;;               ([java.lang.Iterable])]
raw docstring

select-terms-fnclj

(select-terms-fn grp)

creates a function that selects terms to output

(-> (query/query-class (type []) ["create"]) ((display/select-terms-fn {:select-terms [:name]}))) => ["create"]

creates a function that selects terms to output

(-> (query/query-class (type []) ["create"])
    ((display/select-terms-fn {:select-terms [:name]})))
=> ["create"]
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close