Remix.run Logo
▲ brabel a day ago

My first thought was that this is useful when you need a lambda that does this, now you can use ::toggle

▲SkiFire13 17 hours ago | parent | next [-]

You could do `bool::not` before, but this is clearer and doesn't require imports.

▲CUViper 10 hours ago | parent [-]

`bool::not` returns the value, while `bool::toggle` is more like a `not_assign`.

▲masklinn 19 hours ago | parent | prev [-]

Now I just need the integer types to gain in-place inc() and dec()

I don’t know how to feel about toggle returning neither old nor new value tho.