From 64dee1ed82c17ff1abb0eef1198acd44be16e9ba Mon Sep 17 00:00:00 2001 From: Louis Bergelson Date: Thu, 13 Jul 2017 16:20:15 -0400 Subject: [PATCH] fixing typo in cross example replacing incorrect use of crossProduct with cross --- SPEC.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPEC.md b/SPEC.md index 2a4884d..d1bb4cc 100644 --- a/SPEC.md +++ b/SPEC.md @@ -2582,7 +2582,7 @@ Array[Int] xs = [ 1, 2, 3 ] Array[String] ys = [ "a", "b", "c" ] Array[String] zs = [ "d", "e" ] -Array[Pair[Int, String]] crossed = crossProduct(xs, zs) # i.e. crossed = [ (1, "d"), (1, "e"), (2, "d"), (2, "e"), (3, "d"), (3, "e") ] +Array[Pair[Int, String]] crossed = cross(xs, zs) # i.e. crossed = [ (1, "d"), (1, "e"), (2, "d"), (2, "e"), (3, "d"), (3, "e") ] ``` ## Integer length(Array[X])