Here, a method m is defined which accepts only positive integers and returns only negative integers. The special variable $ is used to refer to the return value. Unlike functions, methods in Whiley may have side-effects.
Method declarations may also have modifiers, such as public and private.
NOTE see {@link FunctionOrMethod} for more information.
@author David J. Pearce | |