versionAtLeast
lib.strings.versionAtLeast
Docs pulled from | This Revision | 1 day 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
Noogle detected
Implementation
The following is the current implementation of this function.
versionAtLeast = v1: v2: !versionOlder v1 v2;