Newsgroups: comp.lang.apl
Path: watmath!watserv2.uwaterloo.ca!torn!nott!uotcsi2!news
From: cbbrowne@csi.uottawa.ca (Christopher Browne)
Subject: Selective amending
Message-ID: <1993Feb18.034511.7751@csi.uottawa.ca>
Sender: news@csi.uottawa.ca
Nntp-Posting-Host: prgb
Organization: Dept. of Computer Science, University of Ottawa
Date: Thu, 18 Feb 93 03:45:11 GMT

I note this excerpt from a recent posting by Emmett.  I finally got
around to playing around with it, and found something interesting.  It
didn't run properly as-is.

NB. lets check (I leave it to you to 0!:2 this file.)

   a =. integers 4 4

NB. CBB: I had to change the above line to:
   a =. integers 6 6
NB. because of the various references to (2 5 link 1000) below.
NB. When a =. integers 4 4, the "end of the array" would lie at
NB. (3 3), and (2 5) is outside that range.

   b =. 2 1 link 1000
   c =. (2 2 shape 0 1 2 3) link 100 200
   b link a selectiveAssign b
   c link a selectiveAssign c
   a3D =. integers 2 2 2
   b3D =. (1 1 1) link 200
   b3D link a3D selectiveAssign b3D
   ae0 =. 2 5 link 1000
   ae1 =. 5 5 link 1000
   ae2 =. 4 4 link 1000
   ae0 link a selectiveAssign (2 5 link 1000) 
   ae1 link a selectiveAssign (2 5 link 1000) 
   ae2 link a selectiveAssign (2 5 link 1000) 

NB. Of course all this may be making a big deal about something
NB. which amend would handle nicely. 
NB.    Emmett

My copy of the dictionary is still on its way, so that I'm still
rather unclear as to what many of these parts of speech actually DO
(let alone figuring out what they're called!  Emmett's postings in
which some of the seeming "line noise" gets redefined into English
words has been quite helpful.)
-- 
Christopher Browne                |     PGP 2.0 key available
cbbrowne@csi.uottawa.ca           |======================================
University of Ottawa              | Genius may have its limitations, but
Master of System Science Program  | stupidity is not thus handicapped.
