2013-10-24 00:51:28 +00:00
|
|
|
with builtins;
|
|
|
|
|
|
|
|
[ (isNull null)
|
|
|
|
(isNull (x: x))
|
|
|
|
(isFunction (x: x))
|
|
|
|
(isFunction "fnord")
|
|
|
|
(isString ("foo" + "bar"))
|
|
|
|
(isString [ "x" ])
|
|
|
|
(isInt (1 + 2))
|
|
|
|
(isInt { x = 123; })
|
2016-01-06 09:03:24 +00:00
|
|
|
(isInt (1 / 2))
|
|
|
|
(isInt (1 + 1))
|
|
|
|
(isInt (1 / 2))
|
|
|
|
(isInt (1 * 2))
|
|
|
|
(isInt (1 - 2))
|
|
|
|
(isFloat (1.2))
|
|
|
|
(isFloat (1 + 1.0))
|
|
|
|
(isFloat (1 / 2.0))
|
|
|
|
(isFloat (1 * 2.0))
|
|
|
|
(isFloat (1 - 2.0))
|
2013-10-24 00:51:28 +00:00
|
|
|
(isBool (true && false))
|
|
|
|
(isBool null)
|
2018-01-29 12:36:59 +00:00
|
|
|
(isPath /nix/store)
|
|
|
|
(isPath ./.)
|
2014-02-26 18:08:44 +00:00
|
|
|
(isAttrs { x = 123; })
|
|
|
|
(isAttrs null)
|
2013-10-24 00:51:28 +00:00
|
|
|
(typeOf (3 * 4))
|
|
|
|
(typeOf true)
|
|
|
|
(typeOf "xyzzy")
|
|
|
|
(typeOf null)
|
|
|
|
(typeOf { x = 456; })
|
|
|
|
(typeOf [ 1 2 3 ])
|
|
|
|
(typeOf (x: x))
|
|
|
|
(typeOf ((x: y: x) 1))
|
|
|
|
(typeOf map)
|
|
|
|
(typeOf (map (x: x)))
|
|
|
|
]
|