mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-18 16:17:18 +02:00

With this, attribute sets with a `__functor` attribute can be applied just like normal functions. This can be used to attach arbitrary metadata to a function without callers needing to treat it specially.
1 line
79 B
Nix
1 line
79 B
Nix
({ __functor = self: x: self.foo && x; foo = false; } // { foo = true; }) true
|