Skip to content

Commit

Permalink
Add a memorize-items utility meta-seed.
Browse files Browse the repository at this point in the history
Part of #20. Part of #52. Part of #55.
  • Loading branch information
jkomoros committed Jul 23, 2023
1 parent 06df9c1 commit 1840d45
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions seeds/example-utility.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,42 @@
}
}
},
"memorize-items": {
"type": "array",
"return": "last",
"items": [
{
"type": "let",
"comment": "Verify that the caller set arg:items and arg:memory",
"name": "arg:args",
"value": [
"arg:items",
"arg:memory"
],
"block": {
"seed": "expect"
}
},
{
"type": "map",
"items": {
"type": "var",
"name": "arg:items"
},
"block": {
"type": "memorize",
"memory": {
"type": "var",
"name": "arg:memory"
},
"value": {
"type": "var",
"name": "value"
}
}
}
]
},
"expect-test": {
"type": "let",
"private": true,
Expand Down

0 comments on commit 1840d45

Please sign in to comment.