previous | index | next

Separating a List into Two Parts

The example suggests that we use first-elements-of and list-tail:

Q: Why is this inefficient?

A: Requires that the length of the list be known.

We could call length but this would be inefficient.

A better way: separate the list as though you were dealing a deck of cards to two people:


previous | index | next