Inherited from Serializable
Inherited by implicit conversion any2stringadd from
Return[ReturnValue] to any2stringadd[Return[ReturnValue]]
Inherited by implicit conversion StringFormat from
Return[ReturnValue] to StringFormat[Return[ReturnValue]]
Inherited by implicit conversion Ensuring from
Return[ReturnValue] to Ensuring[Return[ReturnValue]]
Inherited by implicit conversion ArrowAssoc from
Return[ReturnValue] to ArrowAssoc[Return[ReturnValue]]
A Dsl.Keyword to early return a lifted value from the enclosing function.
Author:
杨博 (Yang Bo)
Since this Return keyword can automatically lift the return type,
TailCalls.done
can be omitted.Suppose you are generating a random integer less than 100, whose first digit and second digit is different. A solution is generating integers in an infinite loop, and Return from the loop when the generated integer conforms with requirements.