Function invertCommand

Returns a command that does the opposite of the given command --- result.apply() calls command.unapply() and result.unapply() calls command.apply().

OpenSource licenses