query
On this page

attrValues

lib.attrsets.attrValues

Primop
Docs pulled from | This Revision | 8 minutes ago

Takes 1 arguments

set


Return the values of all attributes in the given set, sorted by attribute name.

Type

attrValues :: AttrSet -> [Any]

Examples

lib.attrsets.attrValues usage example

attrValues {c = 3; a = 1; b = 2;}
=> [1 2 3]

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.

attrValues = builtins.attrValues;