Последняя активность 4 days ago

Putting groceries away in the fridge.

Версия a738148c89c133bdbd19c628e6b5ae50bd512d97

fridge.nv Исходник Playground
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)