Skip to main content

builtin_method

Function builtin_method 

Source
pub fn builtin_method(recv: &Value, name: &str, args: Vec<Value>) -> DogeResult
Expand description

Dispatch a method call on a List or Dict. recv is the receiver, name the method, args the already-evaluated arguments. A non-collection receiver, an unknown method, or a wrong argument count is a catchable error.