j
Consolidating this J code
I\'m learning J and starting with something basic; adding the multiples of 3 and 5 below 100. I got it with this code:[详细]
2023-04-13 04:37 分类:问答In J, 1!:2&4 replaces LF with CRLF. Is there a way to keep it as LF?
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:[详细]
2023-03-25 07:00 分类:问答Chain verbs in J
Suppose a boxed matrix containing various types: matrix =: (\'abc\';\'defgh\';23),:(\'foo\';\'bar\';45)[详细]
2023-03-25 01:38 分类:问答Force array instead of matrix in J for "i."
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:[详细]
2023-03-06 07:22 分类:问答Fit conjunction (!.) applied to expand
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?[详细]
2023-02-16 14:02 分类:问答Any other ways to emulate `tr` in J?
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[详细]
2023-02-15 09:49 分类:问答J How to get equation to multiply by itself?
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.[详细]
2023-02-12 21:53 分类:问答How to "for loop" in J
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#[详细]
2023-02-11 18:45 分类:问答Wrapping J's Adverse primitive (::)
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[详细]
2023-02-05 06:47 分类:问答Help using Google's SMTP server in J
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[详细]
2023-01-31 03:41 分类:问答