Skip to main content

spread_call

Function spread_call 

Source
pub fn spread_call<A: IVm>(
    f: Any<A>,
    items: impl IntoIterator<Item = ArrayItem<A>>,
) -> Result<Any<A>, Any<A>>
Expand description

f(...) over an argument list holding a spread: the arguments spread_array builds, then the call, so a spread’s throw comes first, as JavaScript evaluates the arguments before it calls.