On 5/17/20, HH PackRat <hhpack...@gmail.com> wrote: > I need to convert the following list of 5 (in reality, far more) > 11-character dates: ... > to a list of 5 boxed dates: ...
Many THANK YOU's to those who responded! As usual with J, there's often more than one way to accomplish something--in this case, 5 completely different ways that I can choose to add to my personal J vocabulary. The shortest was Skip Cave's response, but, Skip, I have a question about how/why yours works. When I read the Vocabulary and NuVoc to see how and why this works, I could not figure out how I would even think to use "{" (catalogue) based on the information in those two sources. The NuVoc definition/description is "Combines ITEMS from the ATOMS inside a BOXED LIST to form a catalogue." My original list was NOT boxed, so that description would automatically dismiss my example from using "{". Can you please clarify why "{" can be used to box an unboxed list? And, by the way, in my programming, I like to do things small step by small step so that I can be sure everything works correctly at each point. My original goal in this case was to get the unboxed list first boxed in the correct manner and then transpose it from a column to a row. (It's part of stock market data from a particular vendor which is out of "standard" order and format.) Three of the five responses did both aspects (box and transpose) in a single command--for which I am quite grateful. It showed me again how amazing J is! Harvey ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm