<
{^_^}>
mod = mod is not defined
jgart has joined #nix-lang
<
jgart>
how can I show the output of (builtins.genList 12)
<
sterni>
jgart: builtins.genList takes two arguments:
<
sterni>
> builtins.genList lib.id 12
<
{^_^}>
[ <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> ]
<
sterni>
> builtins.genList (i: i) 12
<
{^_^}>
[ <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> ]
<
sterni>
arrg laziness
<
ekleog_>
> :p builtins.genList (i: i) 12
<
{^_^}>
[ 0 1 2 3 4 5 6 7 8 9 10 11 ]
<
sterni>
> lib.generators.toPretty {} (builtins.genList (i: i) 12)
<
{^_^}>
"[\n 0\n 1\n 2\n 3\n 4\n 5\n 6\n 7\n 8\n 9\n 10\n 11\n]"
<
sterni>
ekleog_: thx
<
jgart>
ohh so, in my case I wrote something that is waiting to get curried?
<
jgart>
i.e. curried to another function
<
sterni>
jgart: yes nix does currying always
<
jgart>
sterni, thanks!
rajivr has joined #nix-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
mvnetbiz_ has quit [Changing host]
mvnetbiz_ has joined #nix-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
jgart has quit [Quit: Leaving]
sphalerite_ is now known as sphalerite
__monty__ has joined #nix-lang
jared-w has quit [Ping timeout: 272 seconds]
jared-w has joined #nix-lang
rajivr has quit [Quit: Connection closed for inactivity]
sterni has quit [Ping timeout: 260 seconds]
sterni has joined #nix-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
__monty__ has quit [Quit: leaving]