]> gitweb.factorcode.org Git - factor.git/blob - basis/models/arrow/smart/smart.factor
stack-checker: add inputs and outputs words, since 'infer (in>>|out>>) length' was...
[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 combinators.smart macros kernel ;
5 IN: models.arrow.smart
6
7 MACRO: <smart-arrow> ( quot -- quot' )
8     [ inputs dup ] keep
9     '[ _ narray <product> [ _ firstn @ ] <arrow> ] ;