Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(expr: &SExpr, arms: &[MatchArm]) -> Option<usize>
Expand description

Dispatch an expression to the first matching arm.

Returns the handler index of the first matching arm, or None.