no description only meoww


auceps
@auceps

it was cool to see all my iterations pretty much work instantly after spending such a long time just refining types. payoff was huge
https://replit.com/@aucep/nix-case-of

case "w"
of "x" []
of "y" [1]
of' (x: x != "w") (x: x)
default (x: "o" + x)
# => "ow"

anyways time to use this in aoc or something (was that why i started doing this?)


leftpaddotpy
@leftpaddotpy

basically checking the type of the argument; in that case, having a type class with an instance for (-> a); or for Nix, directly checking it

it's not. it's so much cooler (more evil (cooler)).


You must log in to comment.