From a351e949103e4650a6647566218668678c029bb8 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 26 Nov 2014 16:46:02 -0500 Subject: [PATCH] All `f:apply' functions support partial application 'Tis tasty! --- src/apply.xsl | 86 +++++++-------------- test/apply-test.xsl | 16 ++++ test/apply.xspec | 178 +++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 208 insertions(+), 72 deletions(-) diff --git a/src/apply.xsl b/src/apply.xsl index d96db5f..fc184c6 100644 --- a/src/apply.xsl +++ b/src/apply.xsl @@ -34,15 +34,12 @@ - + - + - - @@ -56,63 +53,50 @@ - - - - + - + - - - - - + - + - - - - - - + - + - - - - - - - + - + @@ -120,19 +104,14 @@ - - - - - - - - + - + @@ -141,20 +120,14 @@ - - - - - - - - - + - + @@ -164,16 +137,9 @@ - - - - - - - - - - + diff --git a/test/apply-test.xsl b/test/apply-test.xsl index 010de9c..ca3ee18 100644 --- a/test/apply-test.xsl +++ b/test/apply-test.xsl @@ -154,4 +154,20 @@ + + + + + + + + diff --git a/test/apply.xspec b/test/apply.xspec index 9262024..7f6ad61 100644 --- a/test/apply.xspec +++ b/test/apply.xspec @@ -218,12 +218,13 @@ + + - @@ -252,15 +253,168 @@ + test="foo:arg8-check( $args/*, $x:result )" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +