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/
virus_dave has quit [Quit: virus_dave]
virus_dave has joined #nix-lang
virus_dave has quit [Client Quit]
ddellacosta has quit [Quit: WeeChat 2.2]
ddellacosta has joined #nix-lang
ddellacosta has quit [Ping timeout: 265 seconds]
__monty__ has joined #nix-lang
<__monty__> Already here : )
<__monty__> > :p (lib.mapAttrsRecursiveCond (as: (lib.collect lib.isAttrs) != []) (x: builtins.head (lib.attrValues x)) {a = {b = {c = "foo";};};})
<{^_^}> value is a list while a set was expected, at (string):277:85
<__monty__> Hmm, that's not the error I was expecting.
<infinisil> I'm thinking to write a function that recurses to itself
<infinisil> Exit condition is that the value is an attribute set where all values aren't attribute sets
<infinisil> And recursion uses mapAttrs
<infinisil> Let's wait for abbec thougj
<__monty__> The first part of what you said sounds like mapAttrsRecursiveCond to me.
<__monty__> You could invite them in if you're an op.
virus_dave has joined #nix-lang
ddellacosta has joined #nix-lang
abbec has joined #nix-lang
ddellaco1 has joined #nix-lang
ddellacosta has quit [Ping timeout: 240 seconds]
virus_dave has quit [Quit: virus_dave]
__monty__ has quit [Quit: leaving]
jtojnar_ has joined #nix-lang
jtojnar_ has quit [Quit: jtojnar_]