Class 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.)
    • Constructor Detail

      • ApplyWithValues

        public ApplyWithValues()
    • Method Detail

      • applyWithValues

        public static java.lang.Object applyWithValues​(java.lang.Object values,
                                                       Procedure consumer)
                                                throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • apply2

        public java.lang.Object apply2​(java.lang.Object values,
                                       java.lang.Object consumer)
                                throws java.lang.Throwable
        Specified by:
        apply2 in class Procedure2
        Throws:
        java.lang.Throwable