### Lisp: Why does (- 1e16 1) yield 10000000000000000 not 9999999999999999??

Or rather, why does (= 1e16 (- 1e16 1)) return true? How can I receive more accurate answer? ...

### How to find the median of list in scheme?

I am new to Scheme and I am using Dr.Racket to try to find the median of the list. For example, (median 2 1 3) shou...

### LISP SICP Video Lecture 2a Average Damp Question?

In the following code, I am trying to understand how the variable whatami gets its value. In following the logic, I...

### cond variable has no value?

I am a newbie in lisp. I just want to create a short programme. It is about testing a condition and do something wh...

### Getting the first n elements of a list in Common Lisp??

How would I get the first n elements of a list? CL-USER&gt; (equal (some-function 2 '(1 20 300)) '(...

### LISP Function that Returns True If Atom Is In List?

I'm trying to write a function (deep-find) that takes in a list and another argument and returns T if that argument ...

### reversing list in Lisp?

I'm trying to reverse a list in Lisp, but I get the error: " Error: Exception C0000005 [flags 0] at 20303FF3 ...

### Lisp: Squaring all values in a list?

Please bear with me as I am still fairly new to lisp. The goal of my function (in this case called test) is to squar...

### Can you return nothing from a function in Scheme??

I'm writing a scheme interpreter, and in the case of an if statement such as: (if (&lt; 1 0) 'true) Any interpret...

### function (OccurencesOfPrimes < list >) which counts the number of primes in a (possibly nested) list?

I am working on problem to get the occurence of Prime in a list in lisp. Input: Write a function (OccurencesOfPrimes...

### What makes Lisp macros so special??

Reading Paul Graham's essays on programming languages one would think that Lisp macros are the only way to go. As a ...

### How do foldl and foldr work, broken down in an example??

Okay, I am new with scheme/racket/lisp. I am practicing creating my own functions, syntax, and recursion, so I want ...

### Lisp: list vs S-expression?

I'm studying Lisp now. I encountered 2 terms "list" and "S-expression". I just can't distinguish between them. Are t...