JohnEarnest / ok

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

bug in dmend? #95

Open tangentstorm opened 2 years ago

tangentstorm commented 2 years ago

In ngn/k:

  d:(,`k)!,!10; d[`k;2 3]: 100; d
(,`k)!,0 1 100 100 4 5 6 7 8 9

in oK:

  d:(,`k)!,!10; d[`k;2 3]: 100; d
(`k;2;3)!100 100 100

I think ngn/k has the right idea here.

tangentstorm commented 2 years ago

interestingly, the behavior seems to work correctly when +: is used.

JohnEarnest commented 2 years ago

No, the behavior does not work correctly with +:.