VOOZH about

URL: https://www.geeksforgeeks.org/lisp/arrays-in-lisp/

⇱ Arrays in LISP - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Arrays in LISP

Last Updated : 26 May, 2022

LISP, is a list processing, is a programming language widely used in working with data manipulation. LISP allows us to produce single or multiple-dimension arrays using the make-array function. An array can store any LISP object as its elements.

👁 Index Number of the LISP array start from 0 index to the n-th term
 

The index number of the array starts from 0 to the n-th term.

Attributes:

  • The setf attribute gives a call to the function.
  • The aref attribute allows accessing the name of the array and index value.
  • The my-array attribute is used in creating the cells of the array.
  • The dotimes attribute allows looping. Looping start from zero to the nth number defined by the user.
  • The tepri attribute is used to produce a new line,
  • The initial-content attribute is a sequence of nested structures. 

Example 1:  

Output:

👁 Image
 

Example 2:

Output:

👁 Image
 

Example 3:

Output:

👁 Image
 

Example 4:

Output:

👁 Image
 
Comment