diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-02-02 16:38:17 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2022-02-02 16:38:28 +0000 |
| commit | 5311960780ccd26ef5d4730ea755154e3d61f25a (patch) | |
| tree | 14abbb8876e9d3fdaebde86bdaa625310433ef31 /spec/e2e/test-fn.alv | |
| parent | wip vector math (diff) | |
| download | alive-vector-math.tar.gz alive-vector-math.zip | |
wip for releasevector-math
Diffstat (limited to 'spec/e2e/test-fn.alv')
| -rw-r--r-- | spec/e2e/test-fn.alv | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/e2e/test-fn.alv b/spec/e2e/test-fn.alv new file mode 100644 index 0000000..e3c5b13 --- /dev/null +++ b/spec/e2e/test-fn.alv @@ -0,0 +1,10 @@ +([1]import* math array-) + +([2]defn my-plus (a b) + ([13]+ a b)) + +([3]defn apply-op (op arr) + ([7]op ([8]get arr 0) ([9]get arr 1))) + +([4]trace ([5]apply-op + ([6]array 2 3))) +([10]trace ([11]apply-op my-plus ([12]array 2 3))) |
