summaryrefslogtreecommitdiff
path: root/animate.rb
diff options
context:
space:
mode:
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
+