Pudu programming language
Menu
API reference

Std.Semver.before

1 declaration

fn

before: &Std.Semver.Version -> &Std.Semver.Version -> Bool

This is a callable function.

What it does

Whether the first version comes before the second.

Numbers first, then the prerelease tail. Two rules of the tail are the ones

worth stating: a version with a tail comes before the same version

without one, because 1.0.0-rc.1 is a run-up to 1.0.0; and build

metadata is ignored entirely, because two builds of one version are that

version.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.

Back to Std.SemverSearch related declarations