Handbook
Glossary
semver
Vocabulary
semver
Definition
USING:
math
;
IN:
semver
TUPLE:
semver
{
major
integer
initial:
0
}
{
minor
integer
initial:
0
}
{
patch
integer
initial:
0
}
prerelease build
;
Methods
USING:
kernel
math.order
semver
semver.private
;
M:
semver
<=>
2dup
major<=>
dup
+eq+
eq?
[
drop
2dup
minor<=>
dup
+eq+
eq?
[
drop
2dup
patch<=>
dup
+eq+
eq?
[
drop
prerelease<=>
]
[
2nip
]
if
]
[
2nip
]
if
]
[
2nip
]
if
;
USING:
semver
;
M:
semver
>semver
;