3

I am trying to learn J and one huge problem I'm running into is I don't know what all the predefined operators are or where to find them. It took me way too long to figure out the | is both the remainder function(when it dyadic) but when its used monadic it gets absolute value or magnitude. Does any one know where a list of all the operators that J defines by default could be found?

YasirA
  • 9,531
  • 2
  • 40
  • 61
faceless1_14
  • 7,382
  • 9
  • 31
  • 33

2 Answers2

3

You may be looking for the J Vocabulary, although trying to read its documentation on monadic vs. dyadic | is greek to me. (Disclaimer: I am not a J programmer)

Adam Bellaire
  • 108,003
  • 19
  • 148
  • 163
  • 1
    that looks exactly like what I was looking for thanks. Monadic means it takes in arguments from one side like this +/ 1 2 3 and returning 6 dyadic means taking arguments from both sides 1 2 3 +/ 1 2 3 returnin 2 3 4 3 4 5 4 5 6 – faceless1_14 Aug 31 '09 at 15:20
  • It's really unfortunate that J doesn't have built-in help, using the foreign conjunction I'm sure. One of the things I love about REBOL is that I can type `help foo` and get immediate help on `foo`. – Gregory Higley Jun 08 '10 at 01:35
2

In the J version 6 IDE, control-F1 will bring up documentation on the word at the cursor, if it's defined in the implementation. Hopefully the new version 7 interfaces will eventually manage to retain this feature.

rdm
  • 658
  • 5
  • 16