Newsgroups: comp.lang.apl
Path: watmath!watserv2.uwaterloo.ca!torn!spool.mu.edu!howland.reston.ans.net!noc.near.net!uunet!elroy.jpl.nasa.gov!decwrl!csus.edu!sfsuvax1.sfsu.edu!vpcsc4
From: vpcsc4@sfsuvax1.sfsu.edu (Emmett McLean)
Subject: Seek examples of lev and dex
Message-ID: <1993Apr11.193021.13364@csus.edu>
Sender: news@csus.edu
Organization: San Francisco State University
Date: Sun, 11 Apr 1993 19:30:21 GMT
Lines: 30


Does anyone have some examples which demonstrate the
uses of lev and dex ([. and ].) ? The Weg-Sirlin method for
amending, and which included [. is the one of the only examples
I have which I understand, and I haven't come up with much using 
trial and error.  Some examples using the explicit to tacit
translator would be helpful also.

If you prefer looking at a specific example, how can s below be
defined tacitly?

   9!:3(5)                         NB. for nice displays
   s =. '%&x. @ (] - &y. -&x.)':2  NB. Assign s as a conjunction
   b =. 3 s 5                      NB. Use s to create verb b
   b                               NB. Look at b
%&3@(] -&5 -&3)

   s =. %&[. @ ( ] -&]. -&[.)      NB. Attempts
domain error
   s =. &[: @ (] -&]: -&[:)
domain error

Feel free to trash this example if you have something addressing
more general cases.

Similarly, I'd also like to see some examples using [: and ]:.

Thanks,

Emmett
