Some simple binary list pattern matching.