exercism-common-lisp/socks-and-sexprs/HINTS.md
Adam Cooper 577860559e Initial commit
This "initial" commit occurs after five exercises have been completed
2025-01-23 19:43:42 -05:00

1.2 KiB

Hints

1. Refresh Lenny on symbols

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!