factor/basis/models/arrow/smart/smart.factor

10 lines
376 B
Factor

! Copyright (C) 2009, 2010 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: models.arrow models.product stack-checker accessors fry
generalizations sequences.generalizations combinators.smart
macros kernel ;
IN: models.arrow.smart
MACRO: <smart-arrow> ( quot -- quot' )
[ inputs dup ] keep
'[ _ narray <product> [ _ firstn @ ] <arrow> ] ;