query
On this page

getFiles

lib.options.getFiles

Docs pulled from | This Revision | 14 minutes ago


Extracts values of all "file" keys of the given list

Type

getFiles :: [ { file :: a; } ] -> [a]

Examples

getFiles usage example

getFiles [ { file = "file1"; } { file = "file2"; } ] // => [ "file1" "file2" ]
getFiles [ ]                                         // => [ ]

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.

getFiles = map (x: x.file);