[Jprogramming] Knuth's Up-Arrow Notation

Skip Cave skip at caveconsulting.com
Tue Sep 18 06:39:43 UTC 2018


How would a J programmer build a verb that would emulate Knuth's up-arrow
notation <https://goo.gl/7pCZKW>? (https://goo.gl/7pCZKW). Tacit & explicit
versions would be nice.

Examples - assuming the verb 'u' is the up-arrow:

2 u 4  = 16
2 u u 4  = 65536
2 u u u 3 = 65536
3 u u 2 = 27
3 u u 3 = 7,625,597,484,987

Skip

Skip Cave
Cave Consulting LLC


More information about the Programming mailing list