Here's a little puzzle to work on with your young children (no use of rank
allowed):
H=: 13 :'((}:y),2*{:y)$''()'''
H 2 2 3
()()()
()()()
()()()
()()()
H applied to a list of 3 numbers produces an array of "HUGS".
K=: 13 :'y$''X'''
K 2 2 3
XXX
XXX
XXX
XXX
K applied to the same list produces an array of "KISSES".
Define a function to produce a alternating list of all those HUGS and
KISSES.
HANDK 2 2 3
()X()X()X()X()X()X()X()X()X()X()X()X
HANDK 2 1 2
()X()X()X()X
HANDK 1 1 1
()X
Linda
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm