/core/words/symbol/symbol.factor
http://github.com/abeaumont/factor · Factor · 14 lines · 8 code · 4 blank · 2 comment · 0 complexity · 073acf35a134e5d63f3296e1c2f6c56c MD5 · raw file
- ! Copyright (C) 2008 Slava Pestov.
- ! See http://factorcode.org/license.txt for BSD license.
- USING: accessors definitions kernel sequences words ;
- IN: words.symbol
- PREDICATE: symbol < word
- [ def>> ] [ [ ] curry ] bi sequence= ;
- M: symbol definer drop \ SYMBOL: f ;
- M: symbol definition drop f ;
- : define-symbol ( word -- )
- dup [ ] curry ( -- value ) define-inline ;