2 ms·
This is how you would write it in factor: "~/yourfile.txt" utf8 file-contents "\\w+" findall [ first second ] map [ { { "house"
by bjourne 12y ago
This is how you would write it in factor:
"~/yourfile.txt" utf8 file-contents
"\\w+" findall [ first second ] map [
{
{ "house" [ "house stuff" print ] }
{ "car" [ "car" print ] }
[ "default stuff: %u\n" printf ]
} case
] each
Tacit programming basically is the same thing as stream programming.