Hi,
I've been trying to find the definition for subset. I've seen it used
in examples on the web, and in some of the factor code, but I can't
find a definition for it or a vocabulary to load that contains it (I
did a 'find . -name '*.factor' -exec grep 'subset' {} \; -print in
the factor directory).
Is this a word that has been replaced by something else, and now the
references to it in vocabs under unmaintained are out of date?
On the web I've been going back and reading older blog postings to
help with learning factor. For example the following post uses subset:
The third version has a different implementation of classify which
uses extra/fry syntax sugar:
: push-at ( value key assoc -- )
[ ?push ] change-at ;
: classify ( seq classifier -- assoc )
H{ } clone [ '[ @ , push-at ] each ] keep
: list>forest ( list -- forest )
[ empty? not ] subset [ unclip ] classify [ list>forest ] assoc-
map ;
Thanks,
Glenn
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk