(cmp a b)
Compares versions a and b, returning -1 if a is older than b, 0 if they're the same version, and 1 if a is newer than b
Compares versions a and b, returning -1 if a is older than b, 0 if they're the same version, and 1 if a is newer than b
(equal? a b)
Is version a the same as version b?
Is version a the same as version b?
(newer? a b)
Is version a newer than version b?
Is version a newer than version b?
(older? a b)
Is version a older than version b?
Is version a older than version b?
(parse s)
Parses string s
into a version map
Parses string `s` into a version map
(try-parse-int o)
Attempt to parse o
to an int, returning o
if that fails or the
parsed version of o
if successful.
Attempt to parse `o` to an int, returning `o` if that fails or the parsed version of `o` if successful.
(valid-format? s)
Checks the string s
for semantic versioning formatting
Checks the string `s` for semantic versioning formatting
(valid? v)
Checks if the supplied version map is valid or not
Checks if the supplied version map is valid or not
(version o)
If o
is a valid version map, does nothing. Otherwise, we'll
attempt to parse o
and return a version map.
If `o` is a valid version map, does nothing. Otherwise, we'll attempt to parse `o` and return a version map.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close