june revised this gist 4 days ago. Go to revision
1 file changed, 27 insertions
fridge.nv(file created)
| @@ -0,0 +1,27 @@ | |||
| 1 | + | ||:@include: lib/rpn.nv | |
| 2 | + | ||
| 3 | + | |:groceries: $item| | |
| 4 | + | :: put $item in the fridge | |
| 5 | + | ||
| 6 | + | |:: put $item in the fridge :fridge: $item $quantity?| | |
| 7 | + | :: put $item in its bin | |
| 8 | + | :: close all the bins | |
| 9 | + | |:: put $item in the fridge? :fridge: $other $quantity| | |
| 10 | + | :checked bins: $other $quantity | |
| 11 | + | |:: put $item in the fridge| | |
| 12 | + | :: make a bin for $item | |
| 13 | + | :: close all the bins | |
| 14 | + | ||
| 15 | + | |:: make a bin for $item| | |
| 16 | + | :fridge: $item 1 | |
| 17 | + | ||
| 18 | + | |:: put $item in its bin :@rpn data: $quantity| | |
| 19 | + | :fridge: $item $quantity | |
| 20 | + | |:: put $item in its bin? :fridge: $item $quantity| | |
| 21 | + | :@rpn: ($quantity 1 +) | |
| 22 | + | ||
| 23 | + | |:: close all the bins? :checked bins: $item $quantity| | |
| 24 | + | :fridge: $item $quantity | |
| 25 | + | |:: close all the bins| | |
| 26 | + | ||
| 27 | + | ||:groceries: (apples apples oranges grapes apples mangos oranges) | |
Newer
Older