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
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
FieldsFields 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 -
Method Summary
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 Details
-
applyWithValues
-
-
Constructor Details
-
ApplyWithValues
public ApplyWithValues()
-
-
Method Details
-
applyWithValues
- Throws:
Throwable
-
apply2
- Specified by:
apply2
in classProcedure2
- Throws:
Throwable
-