1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-09 07:53:55 +02:00

Add isPath primop

this is added for completeness' sake since all the other possible
`builtins.typeOf` results have a corresponding `builtins.is<Type>`
This commit is contained in:
zimbatm 2018-01-29 12:36:59 +00:00
parent 56f1ed5579
commit 514b3c7f83
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
3 changed files with 17 additions and 0 deletions

View file

@ -20,6 +20,8 @@ with builtins;
(isFloat (1 - 2.0))
(isBool (true && false))
(isBool null)
(isPath /nix/store)
(isPath ./.)
(isAttrs { x = 123; })
(isAttrs null)
(typeOf (3 * 4))