by RodgerTheGreat · 2y ago · 0 comments
west_scan : |\ A
east_scan : ||\| A
water_level : west_scan & east_scan
height_water_column : water_level - A
max_height : |/ height_water_column
total_water : +/ height_water_columnNotice that aside from reverse (monadic |), all verb symbols in the above code are in most other languages (max as |, min as &, plus as +, minus as -). Adverbs (such as / for reduce and \ for scan-reduce) make the symbols we already have more generally applicable.
I think a language could go a long way with a small set of basic arithmetic symbols alongside a rich set of adverb symbols.