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

2014-08-18 Thread Eelco Dolstra
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/ ___ nix-dev mailing list nix-d

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

2014-08-18 Thread Roger Qiu
Hello, How does one declare a function with no arguments? ``` x = : 1 + 2 ``` doesn't work. Thanks, Roger ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev