aboutsummaryrefslogtreecommitdiffstats
path: root/alv-lib
diff options
context:
space:
mode:
Diffstat (limited to 'alv-lib')
-rw-r--r--alv-lib/array.moon (renamed from alv-lib/array-.moon)2
-rw-r--r--alv-lib/math.moon4
-rw-r--r--alv-lib/struct.moon (renamed from alv-lib/struct-.moon)0
3 files changed, 3 insertions, 3 deletions
diff --git a/alv-lib/array-.moon b/alv-lib/array.moon
index e2d2233..bbc1cbd 100644
--- a/alv-lib/array-.moon
+++ b/alv-lib/array.moon
@@ -238,7 +238,7 @@ concat = Constant.meta
@out\set out
-array_constr = builtins!\get('array').result
+array_constr = builtins!\get('mkarray').result
map = Constant.meta
meta:
name: 'map'
diff --git a/alv-lib/math.moon b/alv-lib/math.moon
index 33f215c..2cf6e26 100644
--- a/alv-lib/math.moon
+++ b/alv-lib/math.moon
@@ -291,13 +291,13 @@ also work componentwise with vectors (`num[X]`) and matrices (`num[X][Y]`).
All operators are PureOps.
(+ 1 2 3) #(<num= 6>)
- (+ (array 1 2) (array 3 4)) #(<num[2]= [4 6]>)
+ (+ [1 2] [3 4]) #(<num[2]= [4 6]>)
The arguments for an operator generally have to be of the same type.
However it is also okay to pass in scalar numbers together with a different type.
The scalars will be repeated as necessary to fit the shape of other arguments:
- (* (array (array 1 2) (array 3 4))
+ (* [[1 2] [3 4]]
2)
#(<num[2][2]= [[2 4] [6 8]]>)
diff --git a/alv-lib/struct-.moon b/alv-lib/struct.moon
index b064e81..b064e81 100644
--- a/alv-lib/struct-.moon
+++ b/alv-lib/struct.moon