---Alex Rufon wrote: > Actually, reading the primitives.ijs, only the 2 character notations > are actually defined. With the special form /:~ it becomes a bit > awkward. > > Can I suggest an additional file entry to the standard libraries to > handle special monads and/or dyads like the following: > SortUpValue=: /:~ > SortDownValue=: \:~ > Reshape=: $, > IndexOfLargest=: i.>./ > (im using examples from the J reference card pinned on the corkboard in > front of me)
Yes it seems to me that the script is called "primitives" because it is about giving alphanumeric names to J primitives. My impression is that it is about introducing new users to the functionality of the primitives without getting "bogged down" on symbols, with the idea that they will eventually move on to using the symbols normally. I think your use case is different? > I know that a lot of us has this set of commands that we've always used > because they were useful in everyday programming. > > Do we have something like this right now? If not, I believe it would be > a great idea if we can come up with one so as to consolidate them to > names and added as add-ons or as standard library. I agree that it would be better to create a new script/addon with the set of commands you desire rather than change the existing primitives script. It could start by loading the primitives script as a base & then redefine/extend it as you see fit. If others are interested in contributing you could develop something that was generally useful. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
