Handbook
Glossary
last-semver-slot ( semver -- class )
Vocabulary
semver
Inputs
semver
an
object
Outputs
class
an
object
Definition
USING:
accessors
combinators
kernel
math
sequences
;
IN:
semver
:
last-semver-slot
( semver -- class )
{
{
[
dup
build>>
length
0
>
]
[
drop
build
]
}
{
[
dup
prerelease>>
length
0
>
]
[
drop
prerelease
]
}
{
[
dup
patch>>
0
>
]
[
drop
patch
]
}
{
[
dup
minor>>
0
>
]
[
drop
minor
]
}
{
[
dup
major>>
0
>
]
[
drop
major
]
}
[
drop
major
]
}
cond
;