(!instant!)
(<- m path)
(<-clone m subject xform)
(<-count m path)
(<-keys m path)
(<-overlay m overlay underlay)
(<-underlay m underlay overlay)
(<<- m path)
(<<-clone m subject xform)
(<<-count m path)
(<<-keys m path)
(<<-overlay m path underlay)
(<<-underlay m path overlay)
(access m {:keys [action supatom path function args] :as instructions})
Access an atom or map via an instructions map.
Access an atom or map via an instructions map.
(access-anything-with partial-instructions)
Takes partial instructions and returns a function that needs a map and further instructions.
Takes partial instructions and returns a function that needs a map and further instructions.
(access-this-with m partial-instructions)
Takes partial instructions and returns a primed function like access
Takes partial instructions and returns a primed function like `access`
(add m items)
(add variant m items)
Adds items to m as normalized collections.
Adds items to m as normalized collections.
(add-kw-ns new-namespace thing)
Adds a provided namespace to the thing or things provided DWIM style.
Adds a provided namespace to the thing or things provided DWIM style.
(add-normalized safe-m items)
(add-normalized variant m items)
(add-normalized-boilerplate variant m items)
(after? established in-question)
Is the first thing after the second?
Is the first thing after the second?
(all-valid-examples-of? things vt)
(at-or-after? established in-question)
Is the first thing at or after the second?
Is the first thing at or after the second?
(at-or-before? established in-question)
Is the first thing at or before the second?
Is the first thing at or before the second?
(bang v)
(bang m v)
Provides a vector interface to access.
Provides a vector interface to access.
(before? established in-question)
Is the first thing before the second?
Is the first thing before the second?
(between? basis-start basis-end in-question)
Given the start and end is the thing in question inside both?
Given the start and end is the thing in question inside both?
(call-fn-from-ident m ident)
Calls a function located at the ident.
Calls a function located at the ident.
(call-fn-from-ident-on-map m ident)
Calls a function located at the ident on the map provided.
Calls a function located at the ident on the map provided.
(callable-fn-from-thing fq)
Given a keyword or a string returns a callable function that thing resolves to.
Given a keyword or a string returns a callable function that thing resolves to.
(change m path function)
(change m path function args)
Takes m, path, and then the args to '(swap! c update-in p ...)' or '(update-in c p ...)'.
Takes m, path, and then the args to '(swap! c update-in p ...)' or '(update-in c p ...)'.
(contains-keys? m k)
(contains-keys? m k & ks)
Does a map contain all the provided keys?
Does a map contain all the provided keys?
(default-change-wrapper variant map path function)
(default-change-wrapper variant map path function args)
(duration-in-seconds time-start time-end)
Gives the duration of a time range in seconds. Useful for qualifying drilling activities based on sparse info.
Gives the duration of a time range in seconds. Useful for qualifying drilling activities based on sparse info.
(employ m path)
(employ variant m path)
(employ variant m path & args)
(ensure-safe-string kw-or-str)
(entity-as-instance entity)
Turn an entity into an instance.
Turn an entity into an instance.
(entity-ident-or-idents? thing)
Is this thing an ident or group of them?
Is this thing an ident or group of them?
(entity-ident? thing)
Is a thing an entity id?
Is a thing an entity id?
(entity-idents? thing)
Is this thing a vector of entity ids?
Is this thing a vector of entity ids?
(follow-path m path)
Follows normalized entities to return the true value coords of path. Ripped from fulcro.a.n-s
Follows normalized entities to return the true value coords of path. Ripped from fulcro.a.n-s
(follow-remove-normalized m path)
Removes a path and all it's references from a normalized map.
Removes a path and all it's references from a normalized map.
(id->default-value m id)
Returns the value stored in the default position for an id. i.e. :a/cool returns the value at [:a/id :a/cool :a/a]
Returns the value stored in the default position for an id. i.e. :a/cool returns the value at [:a/id :a/cool :a/a]
(id-kw-for thing)
Catch all function that produces an idkw for a variety of types.
Catch all function that produces an idkw for a variety of types.
(id-kw-for-map m)
Takes a map that presumably has a key with the name id and returns it's namespace qualified id key.
Takes a map that presumably has a key with the name id and returns it's namespace qualified id key.
(id-kw-for-path path)
DO I NEED THIS? WHAT USE IS THIS? HOW'D THIS GET HERE? WHERE IS KONDO?
DO I NEED THIS? WHAT USE IS THIS? HOW'D THIS GET HERE? WHERE IS KONDO?
(id-of m)
Takes a map with a namespaced id key and returns the value for the key named 'id'.
Takes a map with a namespaced id key and returns the value for the key named 'id'.
(id-qkw? thing)
Is a thing a qualified id keyword?
Is a thing a qualified id keyword?
(ident->default-value m ident)
Returns the value stored in the default position for an ident.
i.e. [:a/id :a/cool] returns value at [:a/id :a/cool :a/a]
Returns the value stored in the default position for an ident. i.e. [:a/id :a/cool] returns value at [:a/id :a/cool :a/a]
(ident-for m)
Takes a map and returns the normalized ident for it based on the id.
Takes a map and returns the normalized ident for it based on the id.
(in-bounds? basis-start basis-end in-question)
Given the start and end is the thing in question within both?
Given the start and end is the thing in question within both?
(inside-of-prefix prefix)
Takes a prefix and returns a function that adds that prefix to a thing or things DWIM style.
Takes a prefix and returns a function that adds that prefix to a thing or things DWIM style.
(instant->map t)
Takes an instant of time and breaks it down into units.
Takes an instant of time and breaks it down into units.
(is-already-normalized? m)
Is the provided map already normalized?
Is the provided map already normalized?
(map->instant {:time/keys [yyyy MM dd HH mm ss ms]})
Takes a map of time and returns an instant.
Takes a map of time and returns an instant.
(map-with? & qkws)
Does a map contain all these keys?
Does a map contain all these keys?
(normalizable? m)
Can the provided map be normalized?
Can the provided map be normalized?
(not-after? established in-question)
Is the first thing not after the second?
Is the first thing not after the second?
(not-before? established in-question)
Is the first thing not before the second?
Is the first thing not before the second?
(plural-datatype-name-of thing)
(pull-entry-by-key-name key-name m)
Filters a map returning the entry matching the key-name
Filters a map returning the entry matching the key-name
(qid)
Utility to create a simply id that's a unique string. Placeholder.
Utility to create a simply id that's a unique string. Placeholder.
(rand-of)
(rand-of k)
Returns a random category member.
Can be provided category keyword ':nato-alphabet'
Returns a random category member. Can be provided category keyword ':nato-alphabet'
(rand-str)
(rand-str len)
Creates a random string of 64
or supplied length upper and lower chars + numbers.
Creates a random string of `64` or supplied length upper and lower chars + numbers.
(remove-normalized m path)
Removes a path from a normalized map.
Removes a path from a normalized map.
(return-as-function m thing)
(return-as-function variant m thing)
Returns either the function given or the function stored at the path.
Returns either the function given or the function stored at the path.
(return-as-instance m thing)
(return-as-instance variant m thing)
If given a path, return the map entry, ortherwise return the map. A variant can be provided first to use a named method of employ.
If given a path, return the map entry, ortherwise return the map. A variant can be provided first to use a named method of employ.
(return-map-and-ident m ident)
Given an atom or a map and another map or ident or id keyword returns m and ident. i.e. [{} [:a/id :a/cool]]
Given an atom or a map and another map or ident or id keyword returns m and ident. i.e. [{} [:a/id :a/cool]]
(rm m path)
(rm variant m path)
Removes an ident from m.
Removes an ident from m.
(rm-kw-ns thing)
Removes the namespace for a thing or things DWIM style.
Removes the namespace for a thing or things DWIM style.
(safe-kws thing)
(safe-kws underscore-replacement thing)
(safe-kws thing)
(safe-string->kw n)
safe storage string -> useful kw
safe storage string -> useful kw
(subtract original & others)
Subtracts time by taking an inst, and number/unit pairs. i.e. 12 :minutes 43 :hours 4 :days, etc. Subtracts numbers via reduce.
Subtracts time by taking an inst, and number/unit pairs. i.e. 12 :minutes 43 :hours 4 :days, etc. Subtracts numbers via reduce.
(sum original & others)
Adds time by taking an inst, and number/unit pairs. i.e. 12 :minutes 43 :hours 4 :days, etc. Adds numbers via reduce.
Adds time by taking an inst, and number/unit pairs. i.e. 12 :minutes 43 :hours 4 :days, etc. Adds numbers via reduce.
(time-pair->seconds p)
(time-pair->seconds n u)
(time-pair->seconds n u & nus)
Turns a pair of number/unit i.e. 12 :minutes and converts it to seconds.
Turns a pair of number/unit i.e. 12 :minutes and converts it to seconds.
(timestamp->instant at)
Takes the milliseconds off the time string of a malformed
database time string and makes it an inst.
Takes the milliseconds off the time string of a `malformed` database time string and makes it an inst.
(type-of? thing string)
Does the type of a thing as a string include the string provided?
Does the type of a thing as a string include the string provided?
(unqualified-keyword? thing)
Is a thing a keyword with no namespace.
Is a thing a keyword with no namespace.
(vt-dispatch thing)
Takes a thing and returns it's value-type qualified keyword. This is a dumber case-based type dispatch.
Takes a thing and returns it's value-type qualified keyword. This is a dumber case-based type dispatch.
(walk-dissoc m k & ks)
Walks a map returning it without the provided keys.
Walks a map returning it without the provided keys.
(wrecklessly-dispatch-new-map is-atom? m new-m)
A wrapper that helps make consistent return values for atoms and maps
A wrapper that helps make consistent return values for atoms and maps
(wrecklessly-employ m path)
Employ function that returns the value of a path in the map
Employ function that returns the value of a path in the map
(wrecklessly-handle-possible-atoms thing)
A helpful function to help with atoms. Returns [is-atom? safe-thing]
A helpful function to help with atoms. Returns [is-atom? safe-thing]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close