ReturnBehavior

enum ReturnBehavior : Enum<ControlFlowFn.ReturnBehavior>

Describes whether functions return their argument or whatever is done in a block

Entries

RETURNS_BLOCK_RESULT
Link copied to clipboard

Return whatever the enclosing block returns

RETURNS_ARGUMENT
Link copied to clipboard

Return what was given as argument, usually after applying a function T -> Unit

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int