1.2 KiB
1.2 KiB
Hints
1. Refresh Lenny on symbols
- If you are having trouble returning a symbol from a function, you might need to take a look at quoting!
- Recall that keywords are slightly different from regular symbols, and must be preceded by a different character.
2. Help Lenny distinguish between atoms and conses
- Common Lisp contains predicate functions for determining many things. In particular there are two that are very relevant here. Look for functions with "atom" or "cons" in the name.
- Note: in general predicate functions end with
p
or-p
. The naming of the atom predicate is an unfortunate inconsistency.
3. Help Lenny split up their conses
- When it comes to getting the first element and the rest of an sexpr, there are a couple of options here.
- Look specifically for Accessors as opposed to functions.
- A couple options might have more intuitive names than you'd expect!