home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / apl / 1185 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.2 KB  |  41 lines

  1. Newsgroups: comp.lang.apl
  2. Path: sparky!uunet!gatech!news.byu.edu!hamblin.math.byu.edu!sol.ctr.columbia.edu!usc!rpi!utcsri!skule.ecf!torn!watserv2.uwaterloo.ca!watserv1!70530.1226@compuserve.com
  3. From: Mike Kent <70530.1226@CompuServe.COM>
  4. Subject: Re: Re:  What is an APL language?
  5. Message-ID: <921118054415_70530.1226_DHP44-1@CompuServe.COM>
  6. Sender: daemon@watserv1.uwaterloo.ca
  7. Organization: University of Waterloo
  8. Date: Wed, 18 Nov 1992 05:44:16 GMT
  9. Lines: 30
  10.  
  11. >> ...  Here's how it's done with APL:
  12. >>
  13. >>    a <- +/ 10 34 14 12 22 66 99 44 11 21 94
  14. >>
  15. >>(and so on)  This gives the "average" or "mean" of the numbers.
  16. >
  17. >
  18. >this was an unfortunate example to use.
  19. >
  20. >in mathematica ...
  21.  
  22. And in LISP
  23.  
  24.    (div((plus list)(length list))) 
  25.  
  26. calculates an average.
  27.  
  28. While it's true that the handling of arrays as coherent entities
  29. distinguishes APL from mainstream, sclar-oriented languages like FORTRAN
  30. [pre 9x], COBOL, C et al., what seems to distinguish APL from other
  31. applicative languages is the centrality of arrays, and in particular the
  32. rich set of manipulative and extractive functions which produce new
  33. arrays from old without explicit recalculation of item values.  To a
  34. degree not possible in most other languages, APL is "about" shape, rank,
  35. and lately depth --
  36.  
  37.  
  38.  
  39.  
  40.  
  41.