# HG changeset patch # User jbe # Date 1408503289 -7200 # Node ID 814d42156b14a4e4693e548602f1ff89d3531eef # Parent bb2cf91174ac676f90fdf5f4fe40b0890f2b37a3 Extended README to contain example for file:lines() iterator diff -r bb2cf91174ac -r 814d42156b14 README --- a/README Wed Aug 20 04:47:50 2014 +0200 +++ b/README Wed Aug 20 04:54:49 2014 +0200 @@ -147,7 +147,11 @@ return 0; } - printcsv{"a", "b", "c"} -- prints: a,b,c + printcsv{"a", "b", "c"} + -- prints: a,b,c + + printcsv(assert(io.open("testfile")):lines()) + -- prints: line1,line2,... of "testfile" NOTE: ``seqlua_iterinit`` will store one extra element on the stack during iteration. When ``seqlua_iternext`` returns 0, this extra element is popped