Here's another in the "Tricks for Teachers"  category. This is straight from
the J toybox.


A        List of students in class
$A       Shape or number of items in the list
B        Rearrange the order of names
C       Assign students to partners for day to work on joint project
D       Use J to randomly assign different groups
E      Assign groups of three.  However, Raul fills in the 15th slot.  He
picks the group he wantsto join
F      The next time Jessie gets to pick 

Linda      





]A=: ;: 'Raul Millie willie Lou Andy Jessie  Sue  Ted Dave Ruthie Jean Lola
Jack Joe '
-----T------T------T---T----T------T---T---T----T------T----T----T----T---┐
│Raul│Millie│willie│Lou│Andy│Jessie│Sue│Ted│Dave│Ruthie│Jean│Lola│Jack│Joe│
L----+------+------+---+----+------+---+---+----+------+----+----+----+----
   $A
14
   ]B=:(14 ? 14) { A
-------T----T---T----T----T------T----T---T------T---T----T------T---T----┐
│Jessie│Dave│Joe│Jack│Raul│willie│Andy│Ted│Ruthie│Sue│Jean│Millie│Lou│Lola│
L------+----+---+----+----+------+----+---+------+---+----+------+---+-----
   ]C=:2 7 $ A
-----T------T------T----T----T------T---┐
│Raul│Millie│willie│Lou │Andy│Jessie│Sue│
+----+------+------+----+----+------+---+
│Ted │Dave  │Ruthie│Jean│Lola│Jack  │Joe│
L----+------+------+----+----+------+----
   ]D=:2 7 $ B
-------T------T---T----T------T------T----┐
│Jessie│Dave  │Joe│Jack│Raul  │willie│Andy│
+------+------+---+----+------+------+----+
│Ted   │Ruthie│Sue│Jean│Millie│Lou   │Lola│
L------+------+---+----+------+------+-----
   ]E=:3 5 $ A
-------T------T------T----T------┐
│Raul  │Millie│willie│Lou │Andy  │
+------+------+------+----+------+
│Jessie│Sue   │Ted   │Dave│Ruthie│
+------+------+------+----+------+
│Jean  │Lola  │Jack  │Joe │Raul  │
L------+------+------+----+-------
   ]F=:3 5 $ B
-------T------T---T------T------┐
│Jessie│Dave  │Joe│Jack  │Raul  │
+------+------+---+------+------+
│willie│Andy  │Ted│Ruthie│Sue   │
+------+------+---+------+------+
│Jean  │Millie│Lou│Lola  │Jessie│
L------+------+---+------+-------
   


















-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Linda Alvord
Sent: Monday, September 22, 2014 9:18 AM
To: [email protected]
Subject: Re: [Jbeta] Here's what's needed to win the first grade teachers.

I agree.  It's looking good.

'label' 't o p' tblb 'side' >;:'other stuff goes here'
------T-----┐
│label│t o p│
+-----+-----+
│s    │other│
│i    │stuff│
│d    │goes │
│e    │here │
L-----+------
   
   4 3$<'  '
---T--T--┐
│  │  │  │
+--+--+--+
│  │  │  │
+--+--+--+
│  │  │  │
+--+--+--+
│  │  │  │
L--+--+---
   
Linda

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dan Bron
Sent: Monday, September 22, 2014 9:02 AM
To: [email protected]
Subject: Re: [Jbeta] Here's what's needed to win the first grade teachers.

Raul wrote:
>  tblb=:conjunction define NB. (
>  :
>    (x ,&boxopen m),:(,.L:0 n) ,&boxopen y
>  )


Hey!  "NB. )". That's really clever.  Well done.

-Dan



----------------------------------------------------------------------
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

Reply via email to