yumaikas / mechanistic_pumpkin_bread_recipe.nv
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
| 1 | |_| Pumpkin Bread Recipe |
| 2 | |
| 3 | || start oven, gather equipment, gather ingredients |
| 4 | |
| 5 | | start oven, imperial | oven fahrenhiet:375 |
| 6 | | start oven, metric | oven celcius:190 |
| 7 | |
| 8 | | gather equipment | |
| 9 | fetch medium bowl, fetch large bowl, |
| 10 | fetch half teaspon, |
yumaikas / Recursive Mira Pattern Match
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
| 1 | --[[ |
| 2 | | |
| 3 | lightning struck [x] [y] |
| 4 | , [something] is at [x] [y]? |
| 5 | , [something] has inventory [inventory]? |
| 6 | , [inventory] has item [item]? |
| 7 | , [item] is [class]? |
| 8 | , [class] is conductive? |
| 9 | | |
| 10 | [something] is struck by lightning |
capitalex / linear-multiset-catlang.txt
0 лайк(-ов)
0 форк(-ов)
3 файл(-ов)
Последняя активность 1 year ago
| 1 | |
| 2 | function run_rules(state) |
| 3 | if state["flour"] >= 1 and state["sugar"] >= 1 and state["apples"] >= 1 then |
| 4 | emit(state, "apple cake") |
| 5 | return run_rules(state) |
| 6 | elseif state["apples"] >= 1 and state["oranges"] >= 1 and state["cherries"] >= 1 then |
| 7 | emit(state, "fruit salad") |
| 8 | return run_rules(state) |
| 9 | elseif state["fruit salad"] >= 1 and state["apple cake"] >= 1 then |
| 10 | emit(state, "fruit cake") |