Skip to Content
Programming Algorithms in Lisp: Writing Efficient Programs with Examples in ANSI Common Lisp
book

Programming Algorithms in Lisp: Writing Efficient Programs with Examples in ANSI Common Lisp

by Vsevolod Domkin
January 2021
Intermediate to advanced
380 pages
8h 46m
English
Apress
Content preview from Programming Algorithms in Lisp: Writing Efficient Programs with Examples in ANSI Common Lisp
© Vsevolod Domkin 2021
V. DomkinProgramming Algorithms in Lisphttps://doi.org/10.1007/978-1-4842-6428-7_5

5. Arrays

Vsevolod Domkin1  
(1)
Kyiv, Ukraine
 
../images/502489_1_En_5_Chapter/502489_1_En_5_Figa_HTML.png
Arrays are, alongside structs, the most basic data structure and, at the same time, the default choice for implementing algorithms. A one-dimensional array that is also called a “vector” is a contiguous structure consisting of the elements of the same type. One of the ways to create such arrays, in Lisp, is this:
CL-USER> (make-array 3)
#(0 0 0)
The printed result is the literal array representation. It happens that the array is shown to hold 0s, but that’s implementation-dependent. Additional specifics ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Common Lisp

Practical Common Lisp

Peter Seibel
The Go Programming Language

The Go Programming Language

Alan A. A. Donovan, Brian W. Kernighan

Publisher Resources

ISBN: 9781484264287Purchase LinkPublisher Website