Fellow newbie here. If you're not already, I recommend using Voc <http://www.jsoftware.com/help/dictionary/vocabul.htm> and NuVoc <http://code.jsoftware.com/wiki/NuVoc> at the same time. NuVoc provides a nice overview or reminder, while Voc has more depth.
I find it useful to acquire a few new J concepts at a time; use them for a while, and then peruse the Phrases <http://www.jsoftware.com/help/phrases/contents.htm> for inspiration or to see if there's a more eloquent way to express something. On Mon, Mar 14, 2016 at 9:26 PM, Henry Rich <henryhr...@gmail.com> wrote: > Again, smaller sub-units help to avoid such accidents: >> >> sort =: /:~ >> de_space =: -.&' ' >> normalize =: de_space@sort@tolower >> isAnagramOf =: -:&normalize >> >> Almost every time, these tiny sub-units provide something useful even >> beyond of the current context ("anagrams"). They are certainly easier >> to test/verify. >> > > Emphatically agreed. And also take a moment to decide the proper rank for > a verb. Here, > isAnagramOf applies only to lists, so define it as > > isAnagramOf =: -:&:normalize"1 NB. & would be OK too > > de_space might reasonably be rank 1 as well. > > >> It also makes reasoning about the ranks of the components easier. >> In consequence, it becomes easier to make an educated selection >> between @ vs @: or & vs &: -- much better than to stick blindly >> to some mysterious rule of thumb. >> > > I would rather say that the goal is to understand why the rule of thumb is > not mysterious. > The first step is to note that there is a difference between & and &:, @ > and @:, > and &. and &.: - something many J newcomers pick up late. > > Henry Rich > > > >> Martin Neitzel >> ---------------------------------------------------------------------- >> 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