Skip to content

Instantly share code, notes, and snippets.

@jneira
Created July 14, 2010 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jneira/476004 to your computer and use it in GitHub Desktop.
Save jneira/476004 to your computer and use it in GitHub Desktop.
(defn backtracking [solution? explore node]
(if (solution? node) [node]
(mapcat
#(backtracking solution? explore %1)
(explore node))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment