Documentation for prefix
let assembled from the following types:
Restores the previous value if the block exits unsuccessfully. A successful exit means the block returned a defined value or a list.
my = 42;say ;
In the above case, if the
Bool.pick returns true, the answer will stay as 84 because the block returns a defined value (
say returns true). Otherwise the
die statement will cause the block to exit unsuccessfully, resetting the answer to 42.