[Nix-dev] Function with no arguments in Nix expressions

Eelco Dolstra eelco.dolstra at logicblox.com
Mon Aug 18 11:45:26 CEST 2014


Hi,

On 18/08/14 11:28, Roger Qiu wrote:

> How does one declare a function with no arguments?

A function with no arguments is a constant. So just "x = 1 + 2".

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list