Compare commits

..

No commits in common. "4a1e509fc4c4946efc49cc3b6d80ea38cf995a67" and "673a96ffb86af15aac3e758dc616b95a2427a2ac" have entirely different histories.

3 changed files with 5 additions and 7 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@ludus/ludus-js-pure", "name": "@ludus/ludus-js-pure",
"version": "0.1.3", "version": "0.1.0-alpha.7.9",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@ludus/ludus-js-pure", "name": "@ludus/ludus-js-pure",
"version": "0.1.3", "version": "0.1.0-alpha.7.9",
"license": "GPL-3.0", "license": "GPL-3.0",
"devDependencies": { "devDependencies": {
"shadow-cljs": "^2.26.0", "shadow-cljs": "^2.26.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@ludus/ludus-js-pure", "name": "@ludus/ludus-js-pure",
"version": "0.1.3", "version": "0.1.1",
"description": "A Ludus interpreter in a pure JS function.", "description": "A Ludus interpreter in a pure JS function.",
"main": "target/js/ludus.js", "main": "target/js/ludus.js",
"type": "module", "type": "module",
@ -8,9 +8,7 @@
"keywords": [], "keywords": [],
"author": "Scott Richmond", "author": "Scott Richmond",
"license": "GPL-3.0", "license": "GPL-3.0",
"files": [ "files": ["target/js/*"],
"target/js/*"
],
"devDependencies": { "devDependencies": {
"shadow-cljs": "^2.26.0", "shadow-cljs": "^2.26.0",
"tap": "^18.6.1" "tap": "^18.6.1"

View File

@ -369,7 +369,7 @@ fn sub {
(x as :number) -> x (x as :number) -> x
(x as :number, y as :number) -> base :sub (x, y) (x as :number, y as :number) -> base :sub (x, y)
(x, y, ...zs) -> fold (base :sub, zs, base :sub (x, y)) (x, y, ...zs) -> fold (base :sub, zs, base :sub (x, y))
((x1, y1), (x2, y2)) -> (base :sub (x1, x2), base :sub (y1, y2)) ((x1, y1), (x2, y2)) -> (base :sub (x1, x2), base :sub (x2, y2))
} }
fn mult { fn mult {