From dbb55f88451d27c4343da544e2a6577897bd7bd8 Mon Sep 17 00:00:00 2001
From: Nat Lasseter <Nat Lasseter user@4574.co.uk>
Date: Fri, 16 Feb 2018 16:33:10 +0000
Subject: Making things much worse but functions are now callable

---
 readme.textile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'readme.textile')

diff --git a/readme.textile b/readme.textile
index a5c25f2..b514d21 100644
--- a/readme.textile
+++ b/readme.textile
@@ -32,12 +32,14 @@ bc.. $ echo <<. >test.rb
 require './patter'
 include Patter
 
-fib = Fun.new
+fib = Fun.new(:fibonacci)
 fib.when(0){1}
 fib.when(1){1}
 fib.when(Var) do |n|
-  fib.call(n-1) + fib.call(n-2)
+  fibonacci.call(n-1) + fibonacci.call(n-2)
 end
+
+puts fibonacci(10)
 .
 $ ruby test.rb
 
-- 
cgit v1.2.1

