Commit Graph

26 Commits (a6926b19ce97cdd8cfd2634fa41c1100bf9dde70)

Author SHA1 Message Date
Doug Coleman 33d96f7623 combinators.smart: Add smart combinator that outputs a seq and (length-n) more elements. 2015-08-06 12:07:20 -05:00
Doug Coleman 892c62e1dc factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test 2015-07-03 09:39:59 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
John Benediktsson 5903b2ccf5 combinators.smart: adding smart-2reduce and smart-2map-reduce, for @erg. 2012-09-26 17:43:26 -07:00
John Benediktsson c5c74aa59c combinators.smart: adding smart-reduce and smart-map-reduce. 2012-09-26 17:01:44 -07:00
Doug Coleman cda2e4d7da combinators.smart: Add cleave>sequence. 2012-09-19 15:44:20 -07:00
John Benediktsson 2620c64c21 combinators.smart: adding smart-with. 2012-08-13 19:32:12 -07:00
Doug Coleman ebb722bf56 combinators.smart: Make map-reduce-outputs a macro. To be a combinator, we need a full stack-checker rewrite. 2011-12-19 11:12:37 -08:00
Doug Coleman cde3c043bf combinators.smart: Fix infer-known; should be 100% now.
It's stack-checker bugs all the way down.
2011-11-28 20:55:11 -08:00
Doug Coleman c1a49e69c8 combinators.smart: Implement reduce-outputs using compose, fix some stack effects, add using 2011-11-28 20:55:10 -08:00
Doug Coleman 8b18af0335 combinators.smart: Enable a unit test, handle M: object infer-known*, make sum-outputs a macro.
Fixes inverse but still needs work, once I figure out how.
2011-11-28 14:36:57 -08:00
Doug Coleman 2b87eaa1b5 generalizations: Refactor stack-checker so that smart combinators can be used with curry and compose. 2011-11-27 20:25:22 -08:00
Doug Coleman 242f8490c5 Fix smart-if* for multiple inputs and test. oops 2010-04-29 20:21:53 -05:00
Doug Coleman 79a3b71f47 Demonstrate smart-if and smart-if* combinators 2010-04-29 19:57:07 -05:00
Doug Coleman d3db7e0225 Add mnapply, smart-apply. Docs incoming soon 2010-01-29 13:47:06 -06:00
Slava Pestov 0fa425b03a combinators.smart: smart-if was declared inline, and had no unit tests, and so was broken. This was not caught until inline macros became a parse error. Add unit tests for it 2010-01-27 22:23:04 +13:00
Slava Pestov 8e90b92da2 combinators.smart: add nullary combinator and some tests 2009-11-09 00:53:58 -06:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Slava Pestov 3353a777f7 Fixing some unit test failures 2009-04-22 07:05:00 -05:00
Slava Pestov 05f3f9dcb9 Fixing unit tests for stack effect inference changes 2009-04-20 21:15:19 -05:00
Slava Pestov 13af3b4801 combinators.smart: add map-reduce-outputs 2009-02-12 02:19:41 -06:00
Slava Pestov 3166828f75 Fix bug reported by Doug: smart combinators and inline words didn't mix very well in some cases 2009-02-06 04:38:54 -06:00
Doug Coleman a5175c1d1e Add append-outputs and append-outputs-as, docs, tests 2009-01-18 21:18:52 -06:00
Doug Coleman c8fe4b21e7 Rename reduce-output -> reduce-outputs 2009-01-09 15:39:47 -06:00
Doug Coleman fe92608a1f Add combinators.smart 2009-01-08 18:56:49 -06:00