changeset 428:9e3e97ecf9d0

Fix silliness
author Chris Cannam
date Sat, 05 Oct 2013 11:29:39 +0100
parents 92e9d1765390
children 2fbf3ce1e08b
files src/may/vector.yeti
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/may/vector.yeti	Fri Oct 04 21:15:48 2013 +0100
+++ b/src/may/vector.yeti	Sat Oct 05 11:29:39 2013 +0100
@@ -20,10 +20,9 @@
     new double[n];
 
 /// Return a vector of length n, containing all m.
-consts m n =
+consts m n is number -> number -> ~double[] =
    (a = zeros n;
-    d = [m] as ~double[];
-    Arrays#fill(a, d[0]); //!!! wanted "m as ~double", compiler didn't like it
+    Arrays#fill(a, m);
     a);
 
 /// Return a vector of length n, containing all ones.