summaryrefslogtreecommitdiff
path: root/animate.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-05-20 16:38:11 +0200
committerPatrick Simianer <p@simianer.de>2014-05-20 16:38:11 +0200
commitea5a910c2e1cb8e22a6d21bc2566428469a6f53b (patch)
treeafe65053245dd8c6cc372e3a8533bfa0aafca5e0 /animate.rb
parent71b3702396943872e13d109031b81c8a6fdc1d35 (diff)
need to fix self-filling
Diffstat (limited to 'animate.rb')
-rw-r--r--animate.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/animate.rb b/animate.rb
new file mode 100644
index 0000000..558146f
--- /dev/null
+++ b/animate.rb
@@ -0,0 +1,17 @@
+s = 'ich sah ein kleines haus .'
+def visit n, depth, skip=0 # FIXME
+ (depth-skip).times { |i|
+ i += skip
+ 0.upto(n-(i+1)) { |j|
+ yield j, j+i+1
+ }
+ }
+end
+
+0,5
+
+
+1 2
+0,1 1,2 2,3 3,4 4,5
+ich sah ein kleines haus
+