@calcit/procs 0.7.0-a2 → 0.7.0-a3
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/lib/calcit.procs.mjs +6 -1
- package/package.json +2 -2
- package/ts-src/calcit.procs.mts +6 -1
package/lib/calcit.procs.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _a;
|
|
2
2
|
// CALCIT VERSION
|
|
3
|
-
export const calcit_version = "0.7.0-
|
|
3
|
+
export const calcit_version = "0.7.0-a3";
|
|
4
4
|
import { parse } from "@cirru/parser.ts";
|
|
5
5
|
import { writeCirruCode } from "@cirru/writer.ts";
|
|
6
6
|
import { CalcitSymbol, CalcitTag, CalcitRef, CalcitRecur, newTag, refsRegistry, toString, getStringName, _$n__$e_, hashFunction, } from "./calcit-data.mjs";
|
|
@@ -251,6 +251,11 @@ export let _$n_tuple_$o_count = function (xs) {
|
|
|
251
251
|
return xs.count();
|
|
252
252
|
throw new Error("Does not support `count` on this type");
|
|
253
253
|
};
|
|
254
|
+
export let _$n_tuple_$o_class = function (x) {
|
|
255
|
+
if (arguments.length !== 1)
|
|
256
|
+
throw new Error("&tuple:class takes 1 arguments");
|
|
257
|
+
return x.klass;
|
|
258
|
+
};
|
|
254
259
|
export let _$n_record_$o_get = function (xs, k) {
|
|
255
260
|
if (arguments.length !== 2) {
|
|
256
261
|
throw new Error("record &get takes 2 arguments");
|
package/package.json
CHANGED
package/ts-src/calcit.procs.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// CALCIT VERSION
|
|
2
|
-
export const calcit_version = "0.7.0-
|
|
2
|
+
export const calcit_version = "0.7.0-a3";
|
|
3
3
|
|
|
4
4
|
import { parse, ICirruNode } from "@cirru/parser.ts";
|
|
5
5
|
import { writeCirruCode } from "@cirru/writer.ts";
|
|
@@ -298,6 +298,11 @@ export let _$n_tuple_$o_count = function (xs: CalcitValue) {
|
|
|
298
298
|
throw new Error("Does not support `count` on this type");
|
|
299
299
|
};
|
|
300
300
|
|
|
301
|
+
export let _$n_tuple_$o_class = function (x: CalcitTuple) {
|
|
302
|
+
if (arguments.length !== 1) throw new Error("&tuple:class takes 1 arguments");
|
|
303
|
+
return x.klass;
|
|
304
|
+
};
|
|
305
|
+
|
|
301
306
|
export let _$n_record_$o_get = function (xs: CalcitValue, k: CalcitTag) {
|
|
302
307
|
if (arguments.length !== 2) {
|
|
303
308
|
throw new Error("record &get takes 2 arguments");
|