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/
ddellacosta has joined #nix-lang
andi- has quit [Quit: WeeChat 2.6]
ddellacosta has quit [Ping timeout: 260 seconds]
andi- has joined #nix-lang
<evanjs> Can't think of the function I'd want to use for this... how might I take an enum, and combine it with a mirror of it but with a prefix on each term? e.g. take this enum and append a list of "reverse-" options https://github.com/rycee/home-manager/blob/115e76ae12a81bce5dcd19714cdeaaa8d5ca3ce8/modules/programs/neomutt.nix#L213
<infinisil> evanjs: something like `list ++ map reverse list`?
<evanjs> infinisil: that got me on the right track! map (s: "reverse-" + s) list seems to be essentially what I'm looking for.
<evanjs> Doubt I can cleanly do that from the same assignment of the initial list, though :P
<evanjs> i.e. I'll probably need a "base list" and make the option's default the list + f(list)
__monty__ has joined #nix-lang
ddellacosta has joined #nix-lang
kyren has joined #nix-lang
Synthetica has joined #nix-lang
colemickens has quit [Ping timeout: 260 seconds]
colemickens has joined #nix-lang
{^_^} has quit [Excess Flood]
{^_^} has joined #nix-lang
__monty__ has quit [Quit: leaving]