mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 09:06:15 +02:00
doc: generic closure supported key types (#9183)
* doc: generic closure supported key types Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
This commit is contained in:
parent
8b48fb146b
commit
9bc7b4f463
1 changed files with 8 additions and 0 deletions
|
@ -734,6 +734,14 @@ static RegisterPrimOp primop_genericClosure(PrimOp {
|
||||||
```
|
```
|
||||||
[ { key = 5; } { key = 16; } { key = 8; } { key = 4; } { key = 2; } { key = 1; } ]
|
[ { 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,
|
.fun = prim_genericClosure,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue