issues
search
AntonJoha
/
Lisp
Lisp
MIT License
0
stars
0
forks
source link
List operations
#23
Closed
AntonJoha
closed
1 year ago
AntonJoha
commented
1 year ago
Some list operations need to be implemented
[ ] Append each item into a list. ( list 1 2 3 ) creates the list '( 1 2 3 )
[ ] Get from position N in a list ( get 2 '(1 2 3 4 5 ) ) get from position 2 in list which is 3.
[ ] Get length of list. ( len '( 1 2 3 4 5 ) ) get the length of the given list which is 5.
[ ] Get first value in list. ( first ' ( 1 2 3 4 5 ) ) get the first value of the given list which in this case is 1.
[ ] Get all but the first value as a list. ( rest '( 1 2 3 4 5 ) ) get a list of all but the first value '( 2 3 4 5 ).
[ ] More might come later
Some list operations need to be implemented