Source: site.view [edit]
Function name: filterStocks
Arguments: stocksCmd,keywordsCmd
Description: Returns RSS feed that filters a list of stocks (stocksCmd) by a list of keywords (keywordsCmd)
Page type: webl
Render function:  
Module: sandbox

Page source:

var P = WubCall(stocksCmd, []);
var stocks = Select(
    Elem(P, "outline"),
          fun(a) 
             a.xmlUrl != "" ? false end
         );

if (Size(stocks) > 0) then
   var feed = Wub_ReplaceAll(stocks[0].xmlUrl, "&", "&");
   P = GetURL(feed);
   Pretty(P);
else
   "No stocks"
end;