query
On this page

splitVersion

builtins.splitVersion

Primop
Docs pulled from | This Revision | 10 minutes ago

Takes 1 arguments

s


Break a version string into its component parts.

Examples

splitVersion usage example

splitVersion "1.2.3"
=> ["1" "2" "3"]
This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.
(lib.versions.splitVersion)

Noogle detected

Aliases

Detected Type
splitVersion :: String -> [String]

Implementation

This function is implemented in c++ and is part of the native nix runtime.