# Attribute sets with a `__toString` attribute JSON-serialise with a # string coercion of the function call result. builtins.toJSON { __toString = self: "it's " + (builtins.toString (self.x * self.y)); x = 21; y = 2; }
depot | ||
monorepo for the virus lounge | The Virus Lounge |
about summary refs log tree commit diff |
# Attribute sets with a `__toString` attribute JSON-serialise with a # string coercion of the function call result. builtins.toJSON { __toString = self: "it's " + (builtins.toString (self.x * self.y)); x = 21; y = 2; }