query
On this page

getValues

lib.options.getValues

Docs pulled from | This Revision | 14 minutes ago


Extracts values of all "value" keys of the given list.

Type

getValues :: [ { value :: a; } ] -> [a]

Examples

getValues usage example

getValues [ { value = 1; } { value = 2; } ] // => [ 1 2 ]
getValues [ ]                               // => [ ]

Noogle detected

Aliases

Implementation

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

Implementation

The following is the current implementation of this function.

getValues = map (x: x.value);