VOOZH about

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

⇱ Structures in LISP - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Structures in LISP

Last Updated : 29 May, 2022

LISP, is a list processing, is a programming language widely used in working with data manipulation. Structures are used defines data types, that have the ability to combine with another data type to complete the given task.

Attribute used:

  • The defstruct attribute is used to create an instance of a structure.
  • The setf attribute is a macro that calls the function.
  • The setq attribute store the variable.
  • The terpri attribute to produce a new line.

Example 1:

Output:

👁 Image
 

Example 2: 

Output:

👁 Image
 
Comment