On Thu, Jun 11, 2015 at 9:03 PM, Gennadiy Rozental <rogeeff@gmail.com> wrote:
I've got the question about bjam.

I want to glob list of files in the directory and invoke rule for each file I
found. How do I do this?

If you want simple iteration you do:

for local f in [ glob ... ]
{
    my-rule $(f) ;

If you want to collect the results of each call you can use the sequence utility:

import sequence ;
local result = [ sequence.transform my-rule : [ glob ... ] ] ;

HTH

--
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail