Extra Features
Some checks failed
Build / build (push) Failing after 1m40s
Test / build (push) Failing after 11m47s

This commit is contained in:
Chuck Smith
2024-03-14 21:25:47 -04:00
parent 36f04713bd
commit 997f0865f4
20 changed files with 757 additions and 128 deletions

View File

@@ -10,7 +10,7 @@ let book = {
let printBookName = fn(book) {
let title = book["title"];
let author = book["author"];
puts(author + " - " + title);
print(author + " - " + title);
};
printBookName(book);

View File

@@ -8,4 +8,4 @@ let fib = fn(x) {
return fib(x-1) + fib(x-2)
}
puts(fib(35))
print(fib(35))

View File

@@ -8,4 +8,4 @@ let fib = fn(n, a, b) {
return fib(n - 1, b, a + b)
}
puts(fib(35, 0, 1))
print(fib(35, 0, 1))

3
examples/input.monkey Normal file
View File

@@ -0,0 +1,3 @@
let name = input("What is your name? ")
print("Hello " + name)