-1

(thirds '(a b c d e f g)) should return: (a d g);

(thirds '((a b) c (d e f) g (h i))) should return ((a b) g))

(thirds '()) should return the empty list;

The second function is SWAP

The third function is EVENATOM

Inaimathi
  • 13,853
  • 9
  • 49
  • 93

1 Answers1

1

It seems that all this functions were part of someone else's assignment, if you take the time to search for them there are several answers. Disclaimer: I'll link my own solutions, but there are others there, just as good.

  • The thirds procedure was defined here
  • The swap procedure was defined here
  • And the evenatom procedure is here
Community
  • 1
  • 1
Óscar López
  • 232,561
  • 37
  • 312
  • 386