Mastering Dyalog APL
A Complete Introduction to Dyalog APL
Bernard Legrand
With most grateful acknowledgements to the contributors:
Kim S. Andreasen
Daniel Baronet
Gitte Christensen
Peter Donnelly
Morten Kromberg
John Scholes
Adrian Smith
Tim JA. Smith
Dyalog is a trademark of Dyalog Limited
Copyright 1982-2009 by Dyalog Limited
Published by Dyalog Limited
All rights reserved.
First Edition November 2009
No part of this publication may be reproduced in any form by any means without the prior written permission of Dyalog Limited.
Dyalog Limited makes no representations or warranties with respect to the contents
hereof and specifically disclaims any implied warranties of merchantability or
fitness for any particular purpose. Dyalog Limited reserves the right to revise this
publication without notification.
TRADEMARKS
SQAPL is copyright of Insight Systems ApS.
UNIX is a trademark of X/Open Ltd.
Windows, Windows Vista, Visual Basic and Excel are trademarks of Microsoft Corporation.
All other trademarks and copyrights are acknowledged.
Dyalog Limited
http://www.dyalog.com
ISBN : 978-0-9564638-0-7 iii
Contents
INTRODUCTION - WILL YOU PLAY APL WITH ME? 1
Will You Follow Us? 1
Our First Steps into APL's Magic World 4
Array Processing 5
More Symbols 7
Most Symbols Have a Double Meaning 8
Reduction Unifies Traditional Notations 9
Let's Write Our First Programs 10
Indexing 11
Calculating Without Writing ...
Voir