2010-01-14 10:10:13 -05:00
|
|
|
! Copyright (C) 2009, 2010 Slava Pestov.
|
2009-03-28 05:19:33 -04:00
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: models.arrow models.product stack-checker accessors fry
|
2010-05-18 18:36:47 -04:00
|
|
|
generalizations sequences.generalizations combinators.smart
|
|
|
|
macros kernel ;
|
2009-03-28 05:19:33 -04:00
|
|
|
IN: models.arrow.smart
|
|
|
|
|
|
|
|
MACRO: <smart-arrow> ( quot -- quot' )
|
2010-01-14 10:10:13 -05:00
|
|
|
[ inputs dup ] keep
|
2009-03-28 05:19:33 -04:00
|
|
|
'[ _ narray <product> [ _ firstn @ ] <arrow> ] ;
|