Skip to content

Commit 1840d45

Browse files
committed
Add a memorize-items utility meta-seed.
Part of #20. Part of #52. Part of #55.
1 parent 06df9c1 commit 1840d45

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

seeds/example-utility.json

+36
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,42 @@
2828
}
2929
}
3030
},
31+
"memorize-items": {
32+
"type": "array",
33+
"return": "last",
34+
"items": [
35+
{
36+
"type": "let",
37+
"comment": "Verify that the caller set arg:items and arg:memory",
38+
"name": "arg:args",
39+
"value": [
40+
"arg:items",
41+
"arg:memory"
42+
],
43+
"block": {
44+
"seed": "expect"
45+
}
46+
},
47+
{
48+
"type": "map",
49+
"items": {
50+
"type": "var",
51+
"name": "arg:items"
52+
},
53+
"block": {
54+
"type": "memorize",
55+
"memory": {
56+
"type": "var",
57+
"name": "arg:memory"
58+
},
59+
"value": {
60+
"type": "var",
61+
"name": "value"
62+
}
63+
}
64+
}
65+
]
66+
},
3167
"expect-test": {
3268
"type": "let",
3369
"private": true,

0 commit comments

Comments
 (0)