Skip to content

Commit

Permalink
remove variadic puts-ln
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdagos committed Aug 16, 2016
1 parent 7fa64c9 commit c5a92b4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ module Main where
def main [] = {
val λ1 = lambda [x, y] => + $ x y;
val λ2 = lambda [y] => λ1 $ 2 y;
puts-ln $ (λ1 $ 2 2) (λ2 $ 2);
puts-ln $ (λ1 $ 2 2);
puts-ln $ (λ2 $ 2);
}
```

Expand Down
4 changes: 3 additions & 1 deletion test/examples/closures2.bl
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ module Main where
def main [] = {
val λ1 = lambda [x, y] => + $ x y;
val λ2 = lambda [y] => λ1 $ 2 y;
puts-ln $ (λ1 $ 2 2) (λ2 $ 2);

puts-ln $ (λ1 $ 2 2);
puts-ln $ (λ2 $ 2);
}
3 changes: 2 additions & 1 deletion test/parser_tests/closures2.bl
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ module Main where
def main [] = {
val λ1 = lambda [x, y] => + $ x y;
val λ2 = lambda [y] => λ1 $ 2 y;
puts-ln $ (λ1 $ 2 2) (λ2 $ 2);
puts-ln $ (λ1 $ 2 2);
puts-ln $ (λ2 $ 2);
}

0 comments on commit c5a92b4

Please sign in to comment.