pallet.versions documentation

Version handling for pallet

as-version-string

[version]

Take a version, as either a string or a version vector, and returns a version string.

as-version-vector

[version]

Take a version, as either a string or a version vector, and returns a version vector.

version-less

[v1 v2]

Compare two version vectors.

version-matches?

[version spec]

Predicate to test if a version matches a version spec. A version spec is a version, or two (possibly nil) versions in a vector, to specify a version range.

version-string

[version-vector]

Convert a a vector of version numbers to a dotted version string. E.g., (version-vector [1 2]) => "1.2"

version-vector

[version-string]

Convert a dotted version string to a vector of version numbers. E.g., (version-vector "1.2") => [1 2]