ref: 0aabb05706b4141e3704b0ff77ac963ad9e59bdc
parent: de24f6900f69432010ba93df62652d687af90155
parent: 60bc966a9154e134e143c7cfeb001a93761e2d5e
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Feb 8 19:51:14 EST 2016
Merge https://github.com/scharlatan/mc
--- a/doc/lang.txt
+++ b/doc/lang.txt
@@ -205,7 +205,7 @@
eg: true, false
- Funciton literals describe a function. They begin with a '{',
+ Function literals describe a function. They begin with a '{',
followed by a newline-terminated argument list, followed by a
body and closing '}'. They will be described in more detail
later in this manual.
@@ -351,7 +351,7 @@
std.put("Matched const value pat\n")
| `Val a:
std.put("Matched pattern with capture\n")
- std.put("Captured value: a = %i\n", a)
+ std.put("Captured value: a = {}\n", a)
| a
std.put("A top level bind matches anything.")
| `Val 111
@@ -753,7 +753,7 @@
const main = {
var x = 123
var y = 456
- std.put("The max of %i, %i is %i\n", x, y, max(x, y))
+ std.put("The max of {}, {} is {}\n", x, y, intmax(x, y))
}
TODO: DESCRIBE CONSTRUCTS.
@@ -770,7 +770,7 @@
}
const main = {
- std.put("The inner product is %i\n", innerprod([1,2,3], [4,5,6]))
+ std.put("The inner product is {}\n", innerprod([1,2,3], [4,5,6]))
}
TODO: DESCRIBE CONSTRUCTS.