Advertisement
Valemmil

First program in LisP

Sep 15th, 2023
1,017
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.12 KB | Source Code | 0 0
  1. (defun prelast (array)
  2.     (car
  3.      (cdr
  4.         (reverse array)
  5.      )  
  6.     )
  7. )
  8.  
  9. (print (prelast `(1 2 3 4 5)))
Tags: lisp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement