Comment on K7 TutorialComments−justinsaccount7yThis a typo? x: 3 4 5 6 7 8 9 10 y: 100 200 300 400 ?[x;3;y] / replace what's in position 3 by y 3 4 5 100 200 300 400 6 7 8 9 10−tmcb7yLooks like the comment is zero-indexed as well. I wouldn't consider that a typo.−justinsaccount7yPretty sure the output should be 3 4 5 100 200 300 400 7 8 9 10 Otherwise that is not replacing, that is inserting.Weird, I tried it on http://johnearnest.github.io/ok/index.html and that agrees with the doc.. kinda confusing. Seems like it should be ?[x;3;y] / insert y at position 3 ?[x;3 4;y] / replace what's in position 3 by y−tmcb7yI see. In that case, the output is right and the comment is misleading.−justinsaccount7yyeah, I updated my comment after finding http://johnearnest.github.io/ok/index.html so I could test this out and came to the same conclusion.
Comments
This a typo?
Looks like the comment is zero-indexed as well. I wouldn't consider that a typo.
Pretty sure the output should be
Otherwise that is not replacing, that is inserting.Weird, I tried it on http://johnearnest.github.io/ok/index.html and that agrees with the doc.. kinda confusing. Seems like it should be
I see. In that case, the output is right and the comment is misleading.
yeah, I updated my comment after finding http://johnearnest.github.io/ok/index.html so I could test this out and came to the same conclusion.