Liking cljdoc? Tell your friends :D

fif.stack-machine.words

Functions for realizing word functions and word variables.

Functions for realizing word functions and word variables.
raw docstring

get-global-metadataclj/s

(get-global-metadata sm wname)

Gets the metadata for the given wname word definition.

Gets the metadata for the given `wname` word definition.
sourceraw docstring

get-global-wordclj/s

(get-global-word sm name)

Gets a word definition within the global scope.

Gets a word definition within the global scope.
sourceraw docstring

get-metadataclj/s

(get-metadata sm wname)

Gets the word metadata in the local scope.

Gets the word metadata in the local scope.
sourceraw docstring

get-metadata-listingclj/s

(get-metadata-listing sm)

Merges the metadata from each scope into a single map consistingof all word key with word metadata value pairs.

Merges the metadata from each scope into a single map consistingof
all word key with word metadata value pairs.
sourceraw docstring

get-wordclj/s

(get-word sm name)

Gets a word definition within the current scope of the stack-machine.

Gets a word definition within the current scope of the
stack-machine.
sourceraw docstring

get-word-listingclj/s

(get-word-listing sm)

Merges the words from each scope into a single map consisting of all word key and word definition value pairs.

Merges the words from each scope into a single map consisting of
all word key and word definition value pairs.
sourceraw docstring

not-foundclj/s

source

set-global-metaclj/s

(set-global-meta
  sm
  wname
  &
  {:keys [doc source group stdlib? variable?]
   :or {doc nil source nil group nil stdlib? false variable? false}})

Sets the metadata for a particular global word definition, which consists of the keys :doc, :source, :stdlib? and :variable?.

Meta Data Keys:

:doc - Is a string explaining the given word definition.

:source - If it is a word definition defined within fif, this will contain the word definition source code in the form of an EDN vector collectionconsisting of the source.

:group - Set the word definition to a particular key group ex. :stdlib.collection

:stdlib? - If true, the word definition is part of the fif standard libraries.

:variable? - If true, the word definition is a single value data value or data collection.

Sets the metadata for a particular global word definition, which
consists of the keys :doc, :source, :stdlib? and :variable?.

Meta Data Keys:

:doc - Is a string explaining the given word definition.

:source - If it is a word definition defined within fif, this will
contain the word definition source code in the form of an EDN vector
collectionconsisting of the source.

:group - Set the word definition to a particular key group
ex. :stdlib.collection

:stdlib? - If true, the word definition is part of the fif standard
libraries.

:variable? - If true, the word definition is a single value data
value or data collection.
sourceraw docstring

set-global-metadataclj/s

(set-global-metadata sm wname wmeta)

Sets metadata for the given wname which is an independent data-store containing information on the word definition defined by wname in the form of wmeta. wmeta should be a map of key values describing the word definition.

Sets metadata for the given `wname` which is an independent
data-store containing information on the word definition defined by
`wname` in the form of `wmeta`. `wmeta` should be a map of key
values describing the word definition.
sourceraw docstring

set-global-wordclj/s

(set-global-word sm name wfunc)

Sets a word definition within the global scope.

Sets a word definition within the global scope.
sourceraw docstring

set-global-word-defnclj/s

(set-global-word-defn
  sm
  wname
  wfunc
  &
  {:keys [doc source group stdlib? variable?]
   :or {doc nil source nil group nil stdlib? false variable? false}})

Used to set a word definition function while conveniently allowing you to set the metadata as well.

Used to set a word definition function while conveniently allowing
you to set the metadata as well.
sourceraw docstring

set-local-metaclj/s

(set-local-meta
  sm
  wname
  &
  {:keys [doc source group stdlib? variable?]
   :or {doc nil source nil group nil stdlib? false variable? false}})

Sets the metadata for a particular global word definition, which consists of the keys :doc, :source, :stdlib? and :variable?.

Meta Data Keys:

:doc - Is a string explaining the given word definition.

:source - If it is a word definition defined within fif, this will contain the word definition source code in the form of an EDN vector collectionconsisting of the source.

:group - Set the word definition to a particular key group ex. :stdlib.collection

:stdlib? - If true, the word definition is part of the fif standard libraries.

:variable? - If true, the word definition is a single value data value or data collection.

Sets the metadata for a particular global word definition, which
consists of the keys :doc, :source, :stdlib? and :variable?.

Meta Data Keys:

:doc - Is a string explaining the given word definition.

:source - If it is a word definition defined within fif, this will
contain the word definition source code in the form of an EDN vector
collectionconsisting of the source.

:group - Set the word definition to a particular key group
ex. :stdlib.collection

:stdlib? - If true, the word definition is part of the fif standard
libraries.

:variable? - If true, the word definition is a single value data
value or data collection.
sourceraw docstring

set-local-word-defnclj/s

(set-local-word-defn
  sm
  wname
  wfunc
  &
  {:keys [doc source group stdlib? variable?]
   :or {doc nil source nil group nil stdlib? false variable? false}})

Used to set a word definition function while conveniently allowing you to set the metadata as well.

Used to set a word definition function while conveniently allowing
you to set the metadata as well.
sourceraw docstring

set-metadataclj/s

(set-metadata sm wname wmeta)

Sets the word metadata in the local scope.

Sets the word metadata in the local scope.
sourceraw docstring

set-wordclj/s

(set-word sm name wfunc)

Sets a word definition within the current scope with the given name. wfunc is a function which takes the current stack-machine, and performs an operation within the given stack machine.

Sets a word definition within the current scope with the given
`name`. `wfunc` is a function which takes the current stack-machine,
and performs an operation within the given stack machine.
sourceraw docstring

update-global-metadataclj/s

(update-global-metadata sm wname f & args)
source

update-metadataclj/s

(update-metadata sm wname f & args)
source

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

× close