diff options
Diffstat (limited to 'contrib/syslinux/latest/com32/lua/test/fibfor.lua')
-rw-r--r-- | contrib/syslinux/latest/com32/lua/test/fibfor.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/contrib/syslinux/latest/com32/lua/test/fibfor.lua b/contrib/syslinux/latest/com32/lua/test/fibfor.lua deleted file mode 100644 index 8bbba39..0000000 --- a/contrib/syslinux/latest/com32/lua/test/fibfor.lua +++ /dev/null @@ -1,13 +0,0 @@ --- example of for with generator functions - -function generatefib (n) - return coroutine.wrap(function () - local a,b = 1, 1 - while a <= n do - coroutine.yield(a) - a, b = b, a+b - end - end) -end - -for i in generatefib(1000) do print(i) end |