Paste: multi-methods
Author: | mrjbq7 |
Mode: | factor |
Date: | Mon, 19 Sep 2011 19:05:29 |
Plain Text |
QUALIFIED: multi-methods
multi-methods:GENERIC: plus
METHOD: plus { real real } + ;
METHOD: plus { string string } append ;
1 2 plus .
3
"hello " "world" plus .
"hello world"
Author: | rien |
Mode: | factor |
Date: | Fri, 11 Nov 2011 01:23:12 |
Plain Text |
IN: scratchpad Loading resource:extra/multi-methods/multi-methods.factor
Loading resource:basis/shuffle/shuffle.factor
Loading resource:basis/shuffle/shuffle-docs.factor
QUALIFIED: math QUALIFIED: multi-methods
IN: scratchpad
IN: scratchpad multi-methods:GENERIC: +
IN: scratchpad
IN: scratchpad Command: restart
multi-methods:METHOD: + { real real } math:+ ;
IN: scratchpad
IN: scratchpad multi-methods:METHOD: + { string string } append ;
IN: scratchpad
IN: scratchpad 1 2 + .
3
IN: scratchpad "hello " "world" + .
"hello world"
New Annotation