summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/lua/test/fibfor.lua
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/util/lua/test/fibfor.lua')
-rw-r--r--crawl-ref/source/util/lua/test/fibfor.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/crawl-ref/source/util/lua/test/fibfor.lua b/crawl-ref/source/util/lua/test/fibfor.lua
deleted file mode 100644
index 8bbba39cd7..0000000000
--- a/crawl-ref/source/util/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