squint-cljs 0.0.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/lib/cli.js +37 -38
- package/lib/compiler.js +1086 -485
- package/lib/compiler.node.js +1240 -1106
- package/package.json +1 -1
- package/src/squint/core.js +12 -0
- package/lib/cljs_core.js +0 -795
package/package.json
CHANGED
package/src/squint/core.js
CHANGED
|
@@ -1160,3 +1160,15 @@ export function aset(arr, idx, val) {
|
|
|
1160
1160
|
arr[idx] = val;
|
|
1161
1161
|
return val;
|
|
1162
1162
|
}
|
|
1163
|
+
|
|
1164
|
+
export function dorun(x) {
|
|
1165
|
+
for (const o of iterable(x)) {
|
|
1166
|
+
// nothing here, just consume for side effects
|
|
1167
|
+
}
|
|
1168
|
+
return null;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
export function doall(x) {
|
|
1172
|
+
// realize as concrete array
|
|
1173
|
+
return vec(x);
|
|
1174
|
+
}
|