Liking cljdoc? Tell your friends :D

eva.datastructures.versioning


ensure-versionclj

(ensure-version version datastructure & {:as args})

Takes the version to ensure, a node-or-pointer, and whatever extra arguments are necessary to facilitate the conversion. It is unnecessary to define a method to convert a version to itself. (defmethod version-conversion [to-version from-version] conversion:to-version->from-version ;; name it please! [_ from-version-node-or-pointer & {:as contextual-args}] (conversion-code-here))

Takes the version to ensure, a node-or-pointer,
and whatever extra arguments are necessary to facilitate
the conversion. It is unnecessary to define a method to
convert a version to itself.
 (defmethod version-conversion
   [to-version from-version]
   conversion:to-version->from-version ;; name it please!
   [_ from-version-node-or-pointer & {:as contextual-args}]
   (conversion-code-here))
sourceraw docstring

version-conversioncljmultimethod

Takes the version to ensure, a node-or-pointer, whatever extra arguments are necessary to facilitate the conversion in whatever context it is being converted. It is unnecessary to define a method to 'convert' a version to itself. (defmethod ensure-version [to-version from-version] conversion:to-version->from-version ;; name it! [_ from-version-node-or-pointer & {:as contextual-args}] (conversion-code-here))

Takes the version to ensure, a node-or-pointer, whatever extra arguments are
necessary to facilitate the conversion in whatever context it is being converted.
It is *unnecessary* to define a method to 'convert' a version to itself.
 (defmethod ensure-version
   [to-version from-version]
   conversion:to-version->from-version ;; name it!
   [_ from-version-node-or-pointer & {:as contextual-args}]
   (conversion-code-here))
sourceraw docstring

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

× close