diff --git a/examples/factorial.lamb b/examples/factorial.lamb index a63a4ef..c4a2e33 100644 --- a/examples/factorial.lamb +++ b/examples/factorial.lamb @@ -1,4 +1,4 @@ factorial(0) -> 1. factorial(n) -> n * factorial(n - 1). -putstrln(itos(factorial(10))). \ No newline at end of file +print(factorial(10)). \ No newline at end of file diff --git a/examples/listlength.lamb b/examples/listlength.lamb index 4cb0172..5b44050 100644 --- a/examples/listlength.lamb +++ b/examples/listlength.lamb @@ -1,4 +1,4 @@ sum([]) -> 0. sum(x::xs) -> 1 + sum(xs). -putstrln(itos(sum([1, 2, 3]))). \ No newline at end of file +print(sum([1, 2, 3])). \ No newline at end of file diff --git a/examples/listsum.lamb b/examples/listsum.lamb index f171586..97dff4d 100644 --- a/examples/listsum.lamb +++ b/examples/listsum.lamb @@ -1,4 +1,4 @@ sum([]) -> 0. sum(x::xs) -> x + sum(xs). -putstrln(itos(sum([1, 2, 3]))). \ No newline at end of file +print(sum([1, 2, 3])). \ No newline at end of file