test.lua

Sat, 01 Nov 2014 23:34:21 +0000

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sat, 01 Nov 2014 23:34:21 +0000
changeset 5
7667b101cb1e
parent 2
3975fa5ed630
permissions
-rwxr-xr-x

Lua 5.2 compatibility hack


require('scan')

h=scan.scan('/home/tuomov/work/newblog/src')

scan.hfold(h, '',
      function(a, n) return a.."/"..n end, 
      function(a, n) print(a.." | "..n) end)
      

mercurial