]> gitweb.factorcode.org Git - factor.git/blob - basis/models/arrow/smart/smart.factor
3398183edb3e6e4731208d0135869fb7c2c61e88
[factor.git] / basis / models / arrow / smart / smart.factor
1 ! Copyright (C) 2009, 2010 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: models.arrow models.product stack-checker accessors fry
4 generalizations sequences.generalizations combinators.smart
5 macros kernel ;
6 IN: models.arrow.smart
7
8 MACRO: <smart-arrow> ( quot -- quot' )
9     [ inputs dup ] keep
10     '[ _ narray <product> [ _ firstn @ ] <arrow> ] ;