Newsgroups: comp.lang.apl
Path: watmath!watserv2.uwaterloo.ca!torn!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!mentor!weg
From: weg@mace.cc.purdue.edu (Eythan Weg)
Subject: Re: (J) Simultaneous column assignment into a list
In-Reply-To: emclean@sfsuvax1.sfsu.edu's message of Tue, 5 Jan 1993 04:16:11 GMT
Message-ID: <WEG.93Jan14130300@mace.cc.purdue.edu>
Sender: news@mentor.cc.purdue.edu (USENET News)
Organization: Purdue University
References: <1993Jan5.041611.15629@csus.edu>
Distribution: NA
Date: Thu, 14 Jan 1993 18:03:00 GMT
Lines: 31

In article <1993Jan5.041611.15629@csus.edu> emclean@sfsuvax1.sfsu.edu (Emmett McLean) writes:


    This is an inquiry for a verb allowing simultaneous 
    column assignment into a list. In pseudo code
    with bracket indexing, it is : (*see below for the
    pseudo code for a statisfactory alternative.)
    w 
   9 7 7  6  1 6 8
   2 4 7  4 20 2 3
   1 4 8  9 40 9 5
    s
   30  1 
   50 20
   90 40
    w[;3 4] =. s
    w
   9 7 7 30  1 6 8
   2 4 7 50 20 2 3
   1 4 8 90 40 9 5

    Here's a solution but it's hardly elegant:
    ......


Isn't this sufficient?
w=.   s 3 4}"1 w

I think I missed the point.
Eythan

