Liking cljdoc? Tell your friends :D

alda.util


=%clj

(=% & xs)

Returns true if all arguments are within 0.01 of each other.

Returns true if all arguments are within 0.01 of each other.
sourceraw docstring

alda-home-pathclj

(alda-home-path & segments)

Returns the path to a folder/file inside the Alda home directory, or the directory itself if no arguments are provided.

e.g. on a Unix system: (alda-home-path) => ~/.alda (alda-home-path "logs" "error.log") => ~/.alda/logs/error.log

e.g. on a Windows system:

(alda-home-path) => C:\dave.alda (alda-home-path "logs" "error.log") => C:\dave.alda\logs\error.log

Returns the path to a folder/file inside the Alda home directory, or the
directory itself if no arguments are provided.

e.g. on a Unix system:
(alda-home-path) => ~/.alda
(alda-home-path "logs" "error.log") => ~/.alda/logs/error.log

e.g. on a Windows system:

(alda-home-path) => C:\dave\.alda
(alda-home-path "logs" "error.log") => C:\dave\.alda\logs\error.log
sourceraw docstring

log-to-file!clj

(log-to-file! filename)
source

parse-positionclj

(parse-position position-str)

Convert a string denoting a position in a song into the appropriate type. For explicit timepoints this is a double denoting milliseconds, and for markers this is a keyword.

Convert a string denoting a position in a song into the appropriate type.
For explicit timepoints this is a double denoting milliseconds, and for
markers this is a keyword.
sourceraw docstring

parse-str-optsclj

(parse-str-opts opts-str)

Transform string based keyword arguments into a regular map, eg. IN: "from 0:20 to :third-movement some-junk-at-end" OUT: {:from "0:20" :to ":third-movement"}

Transform string based keyword arguments into a regular map, eg.
IN:  "from 0:20 to :third-movement some-junk-at-end"
OUT: {:from  "0:20"
      :to ":third-movement"}
sourceraw docstring

parse-timeclj

(parse-time time-str)

Convert a human readable duration into milliseconds, eg. "02:31" => 151 000

Convert a human readable duration into milliseconds, eg. "02:31" => 151 000
sourceraw docstring

pdoseqcljmacro

(pdoseq binding & body)

A fairly efficient hybrid of doseq and pmap

A fairly efficient hybrid of `doseq` and `pmap`
sourceraw docstring

pdoseq-blockcljmacro

(pdoseq-block binding & body)

A fairly efficient hybrid of doseq and pmap, that blocks.

If an error occurs on an async thread, it is rethrown on the main thread.

A fairly efficient hybrid of `doseq` and `pmap`, that blocks.

If an error occurs on an async thread, it is rethrown on the main thread.
sourceraw docstring

program-pathclj

(program-path & [ns])

utility function to get the filename of jar in which this function is invoked (source: http://stackoverflow.com/a/13276993/2338327)

utility function to get the filename of jar in which this function is invoked
(source: http://stackoverflow.com/a/13276993/2338327)
sourceraw docstring

resettingcljmacro

(resetting vars & body)
source

rolling-log!clj

(rolling-log! filename)
source

set-log-level!clj

(set-log-level!)
(set-log-level! level)
source

strip-nil-valuesclj

(strip-nil-values hsh)

Strip nil values from a map.

Strip `nil` values from a map.
sourceraw docstring

while-letcljmacro

(while-let [binding test] & body)

Repeatedly executes body while test expression is true. Test expression is bound to binding.

(copied from boot.util)

Repeatedly executes body while test expression is true. Test
expression is bound to binding.

(copied from boot.util)
sourceraw docstring

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

× close