From 9bc7b4f463b6a06746bd1658d0170865e3fc8337 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Thu, 19 Oct 2023 14:39:41 +0200 Subject: [PATCH] doc: generic closure supported key types (#9183) * doc: generic closure supported key types Co-authored-by: Valentin Gagarin --- src/libexpr/primops.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 14beb069f..e5c5eb5b1 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -734,6 +734,14 @@ static RegisterPrimOp primop_genericClosure(PrimOp { ``` [ { key = 5; } { key = 16; } { key = 8; } { key = 4; } { key = 2; } { key = 1; } ] ``` + + `key` can be one of the following types: + - [Number](@docroot@/language/values.md#type-number) + - [Boolean](@docroot@/language/values.md#type-boolean) + - [String](@docroot@/language/values.md#type-string) + - [Path](@docroot@/language/values.md#type-path) + - [List](@docroot@/language/values.md#list) + )", .fun = prim_genericClosure, });