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 |
applyToObject
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
nameKey
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, numArgs
applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
public static final ApplyWithValues applyWithValues
public static java.lang.Object applyWithValues(java.lang.Object values, Procedure consumer) throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object apply2(java.lang.Object values, java.lang.Object consumer) throws java.lang.Throwable
apply2
in class Procedure2
java.lang.Throwable