20 lines
423 B
Factor
20 lines
423 B
Factor
! Copyright (C) 2003, 2008 Slava Pestov.
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
USING: kernel sequences namespaces ;
|
|
IN: make
|
|
|
|
SYMBOL: building
|
|
|
|
: make ( quot exemplar -- seq )
|
|
[
|
|
[
|
|
100 swap new-resizable [
|
|
building set call
|
|
] keep
|
|
] keep like
|
|
] with-scope ; inline
|
|
|
|
: , ( elt -- ) building get push ;
|
|
|
|
: % ( seq -- ) building get push-all ;
|