Good question! That has tripped up many people (including myself) Elaborating on both fine answers:
If you aren't sure why you need enclose the atom in a list, this might help: Question: What are the shapes of each of the items in the list? $ each ;: 'cc dd f h gg zz' ┌─┬─┬─┬─┬─┬─┐ │2│2│1│1│2│2│ └─┴─┴─┴─┴─┴─┘ Question: What is the shape of a boxed atom? $ <'h' (empty) -- it's not a list Another point from NuVoc that might help: http://www.jsoftware.com/jwiki/Vocabulary/ecapdot "Create a Boolean array indicating starting points in y of subarrays equal to x" -- see point above about <'h' not being a list and therefore no subarray will equal to it On Wed, Jul 8, 2015 at 6:04 AM, Brian Schott <[email protected]> wrote: > Elaborating on Bo's fine answer and (hopefully) adding line feeds. > > (<'h') E. each a > ┌───┬───┬─┬─┬───┬───┐ > │0 0│0 0│0│1│0 0│0 0│ > └───┴───┴─┴─┴───┴───┘ > (<,'h') E. a > 0 0 0 1 0 0 > (<,'dd') E. a > 0 1 0 0 0 0 > > > > > -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
