infinisil changed the topic of #nix-lang to: Channel for discussing Nix as a language - https://nixos.org/nix/manual/#chap-writing-nix-expressions - Logs: https://logs.nix.samueldr.com/nix-lang/
<sterni> > :v mod
<{^_^}> 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
<ekleog_> np :)
<jgart> ohh so, in my case I wrote something that is waiting to get curried?
<jgart> thanks btw
<jgart> i.e. curried to another function
<sterni> jgart: yes nix does currying always
<sterni> jgart: builtins are documented here btw https://nixos.org/manual/nix/stable/#ssec-builtins (and operators are also documented in that document)
<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]