Permalink
Browse files

Fixed samples.

  • Loading branch information...
1 parent f9782e4 commit aad2db2c91daa70d6d01b2a550081fd1217eafab nineties committed Feb 19, 2013
Showing with 4 additions and 10 deletions.
  1. +4 −1 sample/fib.ab
  2. +0 −9 sample/module.ab
View
@@ -10,7 +10,10 @@ fib(n) where n < 3 : 1
puts(fib(20))
# lambda abstraction
-fib = 1 -> 1 | 2 -> 1 | n -> fib(n-1) + fib(n-2)
+fib = 1 -> 1
+ | 2 -> 1
+ | n -> fib(n-1) + fib(n-2)
+
puts(fib(20))
# if expression
View
@@ -40,12 +40,3 @@ module B {
z is y
puts(z)
}
-
-### scope local open
-# modules can be opened in anonymous scopes locally
-f(): (A){
- a is 1
- b is 2
- return a + b
-}
-puts(f())

0 comments on commit aad2db2

Please sign in to comment.