News for hackers. Stuff that matters.
Re:Streem – a new programming language from Matz by bjourne on Thursday December 11, 2014 @08:53PM (#8738205)
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.

There are no comments on this comment yet.