JohnEarnest / ok

An open-source interpreter for the K5 programming language.
MIT License
588 stars 72 forks source link

Dyadic trains are not recognized as such when applied `/` #93

Open Bubbler-4 opened 3 years ago

Bubbler-4 commented 3 years ago

Code:

f:(*/#)/
`0:, f 3 4
g:{*/x#y}/
`0:, g 3 4

Expected behavior: Both output 64 (product of 3 copies of 4)

Actual behavior: f 3 4 outputs 1 instead. I think that's because (*/#) is treated as monadic and computes the fixed point of "product of count".