I\'m learning J and starting with something basic; adding the multiples of 3 and 5 below 100. I got it with this code:
I have a modified boot.ijs script for J which allows J to respond to a request from Apache. Essentially, in httpd.conf, I have this:
Suppose a boxed matrix containing various types: matrix =: (\'abc\';\'defgh\';23),:(\'foo\';\'bar\';45)
The i. primitive produces a list 开发者_C百科of integers: i. 10 0 1 2 3 4 5 6 7 8 9 If I want to produce several short lists in a row, I do this:
Is it possible to specify a default value for expand with !., the fit conjunction? Normally, it is possible to specify a default fill value for #, but what about #^:_1?
I picked up J a few weeks ago, about the same time the CodeGolf.SE beta opened to the public. A recurrent issue (of mine) when using J over there is reformatting input and output to fit the problem s
How do I get this equation to开发者_高级运维 multiply by itself? */-.%~.q:36 other than repeating the number 36 again. It\'s Euler\'s Totient Function by the way.
I tried but the code wont work. for.T do.开发者_StackOverflow社区 B end. for_xyz. T do. B end. What would be the equivalent of this from C#
Usually, I will use the :: primitive thus: SomeVariable\"_ :: ] DefaultValue I\'m looking for a way to wrap that ugly SOB. I\'m trying to reason it. Normally, it would be with a tacit definition. T
As part of a Computer Science class, we are learning some socket programming in J and have gotten our programs to send e-mails through the school\'s SMTP server and receive from our own ISP, simply be