query
On this page

splitVersion

lib.splitVersion

Primop
Docs pulled from | This Revision | about 1 hour ago

Takes 1 arguments

s


Break a version string into its component parts.

Examples

splitVersion usage example

splitVersion "1.2.3"
=> ["1" "2" "3"]
(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.