Talk:Align columns: Difference between revisions

→‎J solution: No, I'm not surprised that my verb was clumsy.
(→‎J solution: No, I'm not surprised that my verb was clumsy.)
Line 1:
== J solution ==
 
I haven't read the J solution in depth yet, but it appears more complex than may be neccesarynecessary. For example, with <tt>'LEFT CENTER RIGHT'=:i.2</tt> we can solve the task thus:
 
(#~ 0 1 $~ #) (9!:17 CENTER #~ 2 [ 9!:7 ' '$~11) (]":) 4 :'<;._2&.(,&x)y'S:0 /'$';LF;text
Line 14:
 
Now, of course, the justification selected applies to every word. If we want to be able to treat each word (or column) independently, there are other methods. Even for this more general specification, I'm still not convinced that the large explicit verb is required, but I'll have to review it in detail to confirm.
 
= I concur that your solution is adequate to the specified task. It should replace the one I posted. I wrote mine without knowing about 9!:y. Thank you for this more skillful solution, Dan. --[[User:TBH|TBH]] 22:58, 1 December 2008 (UTC)
 
== Output Question ==
Anonymous user