Knight's tour: Difference between revisions

m
(→‎{{header|Haskell}}: Simplified knightMoves function.)
Line 3,221:
knightMoves (x, y) =
let onBoard = (&&) . (0 <) <*> (9 >)
in concatMap(=<<)
(\(i, j) ->
let a = x + i
9,659

edits