0.8.4-SNAPSHOT Arrow_down_16x16

print-solution

clojure.core.logic.bench

  • (print-solution vars)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core/logic/bench.clj:653 top

(defn print-solution [vars]
  (doseq [row-group (->> vars
                        (partition 9)
                        (partition 3)
                        (interpose "\n\n"))]
    (if-not (string? row-group)
      (doseq [row (interpose "\n" row-group)]
        (if-not (string? row)
          (doseq [x (->> row
                         (partition 3)
                         (map #(interpose " " %))
                         (interpose "  "))]
            (print (apply str x)))
          (print row)))
      (print row-group)))
  (println) (println))
Vars in clojure.core.logic.bench/print-solution:
Used in 0 other vars

Comments top

No comments for print-solution. Log in to add a comment.