From 7602b8f0aca806dbb2d521c006f87d2e6d6753b0 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Thu, 15 Feb 2018 15:03:02 +0000 Subject: New example and fix for variable looking not varibles. --- test.pr | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test.pr') diff --git a/test.pr b/test.pr index 77dfb27..e82209b 100644 --- a/test.pr +++ b/test.pr @@ -35,3 +35,14 @@ varity(_, _) is end varity(1) varity(1,2) + +iffy(true, this, _) is + this.call +end +iffy(false, _, that) is + that.call +end +thisser = Proc.new { puts "This" } +thatter = Proc.new { puts "That" } +iffy(4>3, thisser, thatter) +iffy(3>4, thisser, thatter) -- cgit v1.2.1