I found a LISP 1.5 Manual with some code in it.
This one is from Section 1.2
Examples
cons[A;B]=(A . B)
From reading through the manual it looks like the function cons
is taking two atoms as input arguments, A
and B
, and outputting an S-expression, (A . B)
.
Question:
How do I put the code cons[A;B]
in a repl, run it, and see the output (A . B)
?
I'm expecting to do something like:
~ $ lisp1.5
> cons[A;B]
=> (A . B)
For example, if I went to https://www.ruby-lang.org/en/ and saw some code, I would copy it, type irb
into my shell and paste it.
~ $ irb
irb(main):001:0> puts "Hello World!"
Hello World!
=> nil