mirror of
https://github.com/hsjobeki/noogle.git
synced 2024-12-22 21:31:43 +03:00
1 line
45 KiB
JSON
1 line
45 KiB
JSON
|
[{"category":"builtins","fn_type":"abort :: string","name":"abort","description":["takes 1 arguments: __`s`__ \n","Abort Nix expression evaluation and print the error message *s*.\n"]},{"category":"builtins","fn_type":"add :: number -> number -> number","name":"add","description":["takes 2 arguments: __`e1` `e2`__ \n","Return the sum of the numbers *e1* and *e2*.\n"]},{"category":"builtins","fn_type":"all :: (a -> bool) -> [a] -> bool","name":"all","description":["takes 2 arguments: __`pred` `list`__ \n","Return `true` if the function *pred* returns `true` for all elements\nof *list*, and `false` otherwise.\n"]},{"category":"builtins","fn_type":"any :: (a -> bool) -> [a] -> bool","name":"any","description":["takes 2 arguments: __`pred` `list`__ \n","Return `true` if the function *pred* returns `true` for at least one\nelement of *list*, and `false` otherwise.\n"]},{"category":"builtins","fn_type":"attrNames :: AttrSet -> [a]","name":"attrNames","description":["takes 1 arguments: __`set`__ \n","Return the names of the attributes in the set *set* in an\nalphabetically sorted list. For instance, `builtins.attrNames { y\n= 1; x = \"foo\"; }` evaluates to `[ \"x\" \"y\" ]`.\n"]},{"category":"builtins","fn_type":"attrValues :: AttrSet -> [a]","name":"attrValues","description":["takes 1 arguments: __`set`__ \n","Return the values of the attributes in the set *set* in the order\ncorresponding to the sorted attribute names.\n"]},{"category":"builtins","fn_type":"baseNameOf :: string -> string","name":"baseNameOf","description":["takes 1 arguments: __`s`__ \n","Return the *base name* of the string *s*, that is, everything\nfollowing the final slash in the string. This is similar to the GNU\n`basename` command.\n"]},{"category":"builtins","fn_type":"bitAnd :: int -> int -> int","name":"bitAnd","description":["takes 2 arguments: __`e1` `e2`__ \n","Return the bitwise AND of the integers *e1* and *e2*.\n"]},{"category":"builtins","fn_type":"bitOr :: int -> int -> int","name":"bitOr","description":["takes 2 arguments: __`e1` `e2`__ \n","Return the bitwise OR of the integers *e1* and *e2*.\n"]},{"category":"builtins","fn_type":"bitXor :: int -> int -> int","name":"bitXor","description":["takes 2 arguments: __`e1` `e2`__ \n","Return the bitwise XOR of the integers *e1* and *e2*.\n"]},{"category":"builtins","fn_type":"break :: a -> a","name":"break","description":["takes 1 arguments: __`v`__ \n","In debug mode (enabled using `--debugger`), pause Nix expression evaluation and enter the REPL.\nOtherwise, return the argument `v`.\n"]},{"category":"builtins","fn_type":"cattAtrs :: string -> [AttrSet] -> [a]","name":"catAttrs","description":["takes 2 arguments: __`attr` `list`__ \n","Collect each attribute named *attr* from a list of attribute\nsets. Attrsets that don't contain the named attribute are\nignored. For example,\n\n```nix\nbuiltins.catAttrs \"a\" [{a = 1;} {b = 0;} {a = 2;}]\n```\n\nevaluates to `[1 2]`.\n"]},{"category":"builtins","fn_type":"ceil :: double -> int","name":"ceil","description":["takes 1 arguments: __`double`__ \n","Converts an IEEE-754 double-precision floating-point number (*double*) to\nthe next higher integer.\n\nIf the datatype is neither an integer nor a \"float\", an evaluation error will be\nthrown.\n"]},{"category":"builtins","fn_type":"compareVersions :: string -> string -> int","name":"compareVersions","description":["takes 2 arguments: __`s1` `s2`__ \n","Compare two strings representing versions and return `-1` if\nversion *s1* is older than version *s2*, `0` if they are the same,\nand `1` if *s1* is newer than *s2*. The version comparison\nalgorithm is the same as the one used by [`nix-env\n-u`](../command-ref/nix-env.md#operation---upgrade).\n"]},{"category":"builtins","fn_type":"concatLists :: [list] -> []","name":"concatLists","description":["takes 1 arguments: __`lists`__ \n","Concatenate a list of lists into a single list.\n"]},{"category":"builtins","fn_type":"concatMap :: (a -> b) -> [a] -> [b]","name":"concatMap","description":["takes 2 arguments: __`f` `list`__ \n","This function is equivalent
|