KScript docs
EN

semver[] fields and methods

A field is a plain fact about the value, read with a dot and no brackets: $value.name. A method takes arguments or does work, and is called with ->: $value->name(arguments), or with the value piped in: $value |> name(arguments).

From KScript.Core

#semver[]->latest() → semver

The highest release, leaving out prereleases (null when there is none). ->max() includes prereleases.
Example
<let name="x" type="semver[]" value="[1.0.0, 1.1.0-rc.1, 1.1.0-beta.2, 1.0.10]" />
<echo>{ $x->latest() }</echo>
$x: semver[] = [1.0.0, 1.1.0-rc.1, 1.1.0-beta.2, 1.0.10]
echo $x->latest()

Methods from any

Methods from list