Package gnu.kawa.functions
Class ApplyWithValues
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.Procedure2
-
- gnu.kawa.functions.ApplyWithValues
-
- All Implemented Interfaces:
Named
public class ApplyWithValues extends Procedure2
This procedure's first argument values are applied as argument list to the second argument. The call:(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.)
-
-
Field Summary
Fields Modifier and Type Field Description static ApplyWithValues
applyWithValues
-
Fields inherited from class gnu.mapping.Procedure2
applyToObject
-
Fields inherited from class gnu.mapping.Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
-
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
-
Constructor Summary
Constructors Constructor Description ApplyWithValues()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
apply2(Object values, Object consumer)
static Object
applyWithValues(Object values, Procedure consumer)
-
Methods inherited from class gnu.mapping.Procedure2
apply0, apply1, apply3, apply4, applyN, applyToObject, numArgs
-
Methods inherited from class gnu.mapping.Procedure
applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
-
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
-
-
-
Field Detail
-
applyWithValues
public static final ApplyWithValues applyWithValues
-
-