23
submitted 2 years ago by F04118F@feddit.nl to c/nix@programming.dev

Recently got started with Nix and Home-Manager. I thought Advent Of Code would be a good way to get more comfortable with the Nix language.

I don't think I ever made it beyond Day 6 though, even in my most comfortable language (Python) so no idea where this will strand.

I am learning a lot about Nix though!

Have you used the Nix language outside of configuration? Let's share and discuss!

you are viewing a single comment's thread
view the rest of the comments
[-] kintrix@linux.community 3 points 2 years ago* (last edited 2 years ago)

You can also use the pipe operators; but they are still experimental features.

foo (bar (baz x)) = x |> baz |> bar |> foo = foo <| bar <| baz <| x

this post was submitted on 02 Dec 2024
23 points (96.0% liked)

Nix / NixOS

2863 readers
18 users here now

Main links

Videos

founded 3 years ago
MODERATORS