6 ms·
Obligatory K reference: 2 line spreadsheet implementation. S..t:".[`D;(;);{. y};S[]];S[.;`f]:9$D[]" S:D:.+(`a`b`c`d;4 6#,"") This is for K v2 which ha
by beagle3 12y ago
Obligatory K reference: 2 line spreadsheet implementation.
S..t:".[`D;(;);{. y};S[]];S[.;`f]:9$D[]"
S:D:.+(`a`b`c`d;4 6#,"")
This is for K v2 which had Web+JS style built in native GUI. Later versions (K3 =~ Kona, k4/q and the upcoming k5) have dropped the GUI, so unless you have a K2 interpreter lying around, you can't test it. But rest assured it did work on a standalone 200KB interpreter that runs on a bare Win32 or Linux/Solaris + X install.
More info in http://nsl.com/papers/spreadsheet.htm http://nsl.com/papers/spreadsheet.htm - look for S- near the bottom.