2 USING: kernel combinators sequences macros fry newfx combinators.cleave ;
4 IN: combinators.conditional
6 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8 MACRO: 1if ( test then else -- ) '[ dup @ _ _ if ] ;
10 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12 MACRO: 1cond ( tbl -- )
13 [ [ 1st [ dup ] prepend ] [ 2nd ] bi {2} ] map
16 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!