Oops, a better link: http://jsoftware.com/help/phrases/hooks.htm
On Fri, Nov 30, 2012 at 11:48 PM, Ian Clark <earthspo...@gmail.com> wrote: >> If someone asked me to encapsulate "whether values are integers or not", I >> would use >> >> (= <.) 3 3.14 5 > > See 1st entry in: > file:///Applications/j602/help/phrases/hooks.htm > > IanClark > > On Fri, Nov 30, 2012 at 11:36 PM, Peter B. Kessler > <peter.b.kess...@oracle.com> wrote: >> And having read that statement about parentheses, you then come to the >> bottom of http://www.jsoftware.com/help/jforc/common_mistakes.htm where it >> says >> >> As a stopgap, you can imagine that each name's value is enclosed in >> parentheses >> before it is substituted. This still isn't exactly right but it gets you >> the >> right result in all situations you are likely to encounter. >> >> which, when things don't work the way I think they should, makes me wonder >> if I've found one of the "unlikely" situations. >> >> That said, I'm slowly getting better at reading J (or more consistent about >> using things like (5!:2) >> >> ... peter >> >> P.S. If you are reviving http://www.jsoftware.com/jwiki/ControlNuVoc, then >> someone should fix http://www.jsoftware.com/jwiki/Vocabulary/ltdot, which >> under "Common uses" says >> >> Floor (and Ceiling (<.)) can also be useful for testing >> whether values are integers or not. >> >> and >> >> Floor (and Ceiling (<.)) can be useful for forcing >> floating point representations of integers to be >> integers in order to save memory (8 vs 4 bytes per value). >> >> where the glyph for Ceiling should be >. in both sentences. (That just >> happened to be the first page I looked at, and I think I only noticed the >> problem because I was staring at the glyph for Floor.) Those look like >> copy-n-pasto's from the Ceiling page. >> >> If someone asked me to encapsulate "whether values are integers or not", I >> would use >> >> (= <.) 3 3.14 5 >> 1 0 1 >> >> but maybe you don't want to get into hooks this soon. (Or the equivalent >> fork (] = <.) .) >> >> >> David Ward Lambert wrote: >>> >>> The DoJ is perhaps the best technical writing I've seen, >>> even having admitted that it was 2 years before I understood how to >>> decipher headings conjunction and adverb headings such as >>> Atop u@v mv lv rv >>> Let's continue the NuVoc project. >>> http://www.jsoftware.com/jwiki/ControlNuVoc >>> Maybe we'll decide to emphasize what as I recall was but a mere sentence >>> in the DoJ "when proverbs are substituted into a sentence it is as if >>> they were parenthesized." WITH POTENTIALLY DRAMATIC CONSEQUENCE!!!! >>> >>>> Date: Fri, 30 Nov 2012 15:06:29 +0000 >>>> From: Ian Clark <earthspo...@gmail.com> >>>> To: programm...@jsoftware.com >>>> Subject: Re: [Jprogramming] @: and capped fork >>>> Message-ID: >>>> <CAB2g=gAt2XZ0RNM++-YKoLNg3fewCoruhJMjCPJfMu6ur >>>> +0...@mail.gmail.com> >>>> Content-Type: text/plain; charset=UTF-8 >>>> >>>> I too have felt the need for Really Prominent Pages (RPPs?) and I've >>>> regretfully come to conclude that the only workable solution for the >>>> beginner is the forum, as Dan hints. Hence certain issues will turn up >>>> over and over again in the threads. >>> >>> >>> >>> ---------------------------------------------------------------------- >>> For information about J forums see http://www.jsoftware.com/forums.htm >> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm