public class ApplyWithValues extends Procedure2
(call-with-values prod cons)
is equivalent to: (apply-with-values (prod) cons).
(However, the latter isn't expressible in Scheme because you can't
bind multiple values to an argument or variable in Scheme.
The Kawa compiler supports it internally, due to its use by XQuery.)| Modifier and Type | Field and Description |
|---|---|
static ApplyWithValues |
applyWithValues |
applyToObjectapplyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKeynameKey| Constructor and Description |
|---|
ApplyWithValues() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply2(java.lang.Object values,
java.lang.Object consumer) |
static java.lang.Object |
applyWithValues(java.lang.Object values,
Procedure consumer) |
apply0, apply1, apply3, apply4, applyN, applyToObject, numArgsapplyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toStringgetName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbolpublic static final ApplyWithValues applyWithValues
public static java.lang.Object applyWithValues(java.lang.Object values,
Procedure consumer)
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object apply2(java.lang.Object values,
java.lang.Object consumer)
throws java.lang.Throwable
apply2 in class Procedure2java.lang.Throwable