The Goats, Wolves and Lions Puzzle and a Wolfram Language Program to Solve It Most Elegantly

The puzzle: Goats, Wolves and Lions

3 ways to solve it

Solving it in a functional programming style: Functional Goats, Wolves and Lions

in the Wolfram Language - with some principles avoiding hidden traps.