query
On this page

versionAtLeast

lib.versionAtLeast

Docs pulled from | This Revision | 13 minutes ago


Return true if string v1 denotes a version equal to or newer than v2.

Inputs

v1
1. Function argument
v2
2. Function argument

Type

versionAtLeast :: String -> String -> Bool

Examples

lib.strings.versionAtLeast usage example

versionAtLeast "1.1" "1.0"
=> true
versionAtLeast "1.1" "1.1"
=> true
versionAtLeast "1.1" "1.2"
=> false
(lib.strings.versionAtLeast)

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

versionAtLeast = v1: v2: !versionOlder v1 v2;