(elegible-candidates prelim aparams)
finds elegible candidates based upon argument list
(-> (query/query-class clojure.lang.PersistentVector ["create" :#]) (get-in [:lookup :method 1]) (multi/elegible-candidates [java.util.List])) ;;=> (#[create :: (java.util.List) -> clojure.lang.PersistentVector] ;; #[create :: (java.lang.Iterable) -> clojure.lang.PersistentVector])
finds elegible candidates based upon argument list (-> (query/query-class clojure.lang.PersistentVector ["create" :#]) (get-in [:lookup :method 1]) (multi/elegible-candidates [java.util.List])) ;;=> (#[create :: (java.util.List) -> clojure.lang.PersistentVector] ;; #[create :: (java.lang.Iterable) -> clojure.lang.PersistentVector])
(find-candidate mele aparams)
finds best element within the multi, methods then fields
(if (< 9 (:major (version/java-version))) (-> (query/query-class String ["value" :#]) (multi/find-candidate [String (type (chars "a"))]))) ;; #[value :: (java.lang.String) | byte[]] => (any hara.object.element.common.Element nil)
finds best element within the multi, methods then fields (if (< 9 (:major (version/java-version))) (-> (query/query-class String ["value" :#]) (multi/find-candidate [String (type (chars "a"))]))) ;; #[value :: (java.lang.String) | byte[]] => (any hara.object.element.common.Element nil)
(find-field-candidate mele aparams)
finds best field candidate for the element
(if (< 9 (:major (version/java-version))) (-> (query/query-class String ["value" :#]) (multi/find-field-candidate [(type (chars "a"))]))) ;; #[value :: (java.lang.String) | byte[]] => (any hara.object.element.common.Element nil)
finds best field candidate for the element (if (< 9 (:major (version/java-version))) (-> (query/query-class String ["value" :#]) (multi/find-field-candidate [(type (chars "a"))]))) ;; #[value :: (java.lang.String) | byte[]] => (any hara.object.element.common.Element nil)
(find-method-candidate mele aparams)
creates a map path for the element (-> (query/query-class clojure.lang.PersistentVector ["create" :#]) (multi/find-method-candidate [java.util.List])) ;; #[create :: (java.util.List) -> clojure.lang.PersistentVector] => hara.object.element.common.Element
creates a map path for the element (-> (query/query-class clojure.lang.PersistentVector ["create" :#]) (multi/find-method-candidate [java.util.List])) ;; #[create :: (java.util.List) -> clojure.lang.PersistentVector] => hara.object.element.common.Element
(get-name v)
all elements in the array have to have the same name (multi/get-name [{:name "a"} {:name "b"}]) => (throws)
(multi/get-name [{:name "a"} {:name "a"}]) => "a"
all elements in the array have to have the same name (multi/get-name [{:name "a"} {:name "b"}]) => (throws) (multi/get-name [{:name "a"} {:name "a"}]) => "a"
(multi-element m v)
combining elements together into one
(->> (query/query-class clojure.lang.PersistentVector ["create"]) (multi/multi-element {})) ;;=> #[create :: ([java.util.List]), ... ([java.lang.Iterable])]
combining elements together into one (->> (query/query-class clojure.lang.PersistentVector ["create"]) (multi/multi-element {})) ;;=> #[create :: ([java.util.List]), ... ([java.lang.Iterable])]
(to-element-array m0)
converts a three layer map to a flat sequence of values
(multi/to-element-array {:a {:b {:c 1 :d 2}}}) => [1 2]
converts a three layer map to a flat sequence of values (multi/to-element-array {:a {:b {:c 1 :d 2}}}) => [1 2]
(to-element-map-path ele)
creates a map path for the element
(-> (query/query-class String ["charAt" :#]) (multi/to-element-map-path)) => [:method 2 [java.lang.String Integer/TYPE]]
creates a map path for the element (-> (query/query-class String ["charAt" :#]) (multi/to-element-map-path)) => [:method 2 [java.lang.String Integer/TYPE]]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close