Commit Graph

19 Commits (1fc360bc1c6e386e7a9f948583694db47d9d9cad)

Author SHA1 Message Date
Mike Gerwitz ae589865e3
{www.lovullo.com=>mikegerwitz.com} namespaces 2016-03-29 23:00:16 -04:00
Mike Gerwitz ebc6891c3c Initial thrushing implementation
f:thrushr
2014-12-10 15:31:35 -05:00
Mike Gerwitz 4c27b8d15d Assurances that all other `f:*' functions properly handle adjacent data 2014-12-04 15:27:47 -05:00
Mike Gerwitz 658edd8717 `f:set-args' respects and echoes adjacent data by references
Was previously clobbered.
2014-12-04 15:27:47 -05:00
Mike Gerwitz e93283c608 `f:args' ignores adjacent data 2014-12-04 15:27:46 -05:00
Mike Gerwitz 2760834bfb partial.xspec using `f:make-ref' instead of manual construction 2014-12-04 15:27:46 -05:00
Mike Gerwitz 09d2231fc0 `f:length' added
This is aggressively tested in every instance where it could be affected,
since any mishandling of this value would be incredibly dangerous (best
case, it would blow up and abort; worst case, data are interchanged between
refs).
2014-12-04 02:15:22 -05:00
Mike Gerwitz 189eb0cdd6 Partial applications now defined in terms of ref mutators 2014-12-01 09:48:45 -05:00
Mike Gerwitz c526fa2925 `f:{unshift,push}-args' added 2014-12-01 00:34:52 -05:00
Mike Gerwitz 18c1614777 `f:set-args' setter and `f:args' accessor implemented
As operations on dynamic function references become more complex, and since
evolution of the reference structure is planned to evolve, maintaining an
abstraction is vital for both grokking and maintenance.
2014-11-30 04:36:08 -05:00
Mike Gerwitz cd278c31d4 Partial applications now manipulate fnref arity
Previously, a separate `@partial' attribute was added to the ref and the
`@arity' maintained.  Unfortunately, this coupled `f:arity' with
`f:partial', which is unnecessary, considering that partial application is
supposed to conceptually yield a new function, which should be transparent
to `f:arity'.
2014-11-30 03:29:46 -05:00
Mike Gerwitz 5857eed3d6 `arity.xsl' stylesheet combined with ref functions into `ref.xsl'
These are strongly related---they operate on the same abstraction.
2014-11-29 02:01:40 -05:00
Mike Gerwitz c64cefe931 `f:arity' now considers partial applications 2014-11-29 01:16:59 -05:00
Mike Gerwitz f62e6a8e33 Arity test case using f:make-ref
In place of manual specification.
2014-11-28 02:27:07 -05:00
Mike Gerwitz b384e5fad1 Partial applications apply target function when all params are bound
I am aware of the Saxon 9 warning regarding multiple imports of arity.xsl;
I'm going to choose to ignore this, formally in the future.  Each of the
stylesheets is treated like a module.

Michael Kay, Saxon's author, discusses it here:

  http://stackoverflow.com/a/10102298
2014-11-27 01:11:28 -05:00
Mike Gerwitz 0dc019c9ed Error and hook for arity count in partial application 2014-11-27 01:11:27 -05:00
Mike Gerwitz 04373b5edd f:arity extracted into its own stylesheet
It depends on partial application logic, but does not belong in partial.xsl
2014-11-27 01:11:27 -05:00
Mike Gerwitz a02865d8b1 May now partially apply partial applications 2014-11-27 01:11:26 -05:00
Mike Gerwitz 8ba1f04147 Partial application initial development
No support yet for recursive partial applications; just a basic concept.
2014-11-27 01:11:14 -05:00