june / Quad Store w/ Arrays
0 喜歡
0 分支
1 檔案
最後活躍 3 weeks ago
A definition of a quad store, and an example defining arrays.
| 1 | ||:: foo @ 0 = 10 |
| 2 | :: foo @ 1 = 20 |
| 3 | :: foo @ 2 = 30 |
| 4 | :: foo @ 0 |
| 5 | :: foo @ * |
| 6 | |
| 7 | |:: $name @ *? :found: array $name $index $value| |
| 8 | :values: $value |
| 9 | |:: $name @ * :empty:| |
| 10 | |:: $name @ *?| |
june / Accounting Mocks
0 喜歡
0 分支
1 檔案
最後活躍 4 months ago
An example of turning pseudocode into a functional model.
| 1 | |# First, we need to import conditional statements. #| |
| 2 | ||'@include' https://gist.nouveau.community/june/72f7794abbf64eb3890e2715d7e7789b/raw/HEAD/conditional.nv |
| 3 | |
| 4 | |# Let's try something. #| |
| 5 | ||:: test the happy path |
| 6 | :: log in as june |
| 7 | :: transfer 100 from 1234 to 5678 |
| 8 | :: log out |
| 9 | |
| 10 | ||:: test the sad path |
june / Multiple State Machines
0 喜歡
0 分支
1 檔案
最後活躍 4 months ago
An example of turning an isolated state machine into multiple.
| 1 | |# A turnstile, a state machine. #| |
| 2 | |
| 3 | |:state: locked :action: push| :state: locked |
| 4 | |:state: locked :action: coin| :state: un-locked |
| 5 | |
| 6 | |:state: un-locked :action: push| :state: locked |
| 7 | |:state: un-locked :action: coin| :state: un-locked |
| 8 | |
| 9 |
上一頁
下一頁