package knights_tour

  1. Overview
  2. No Docs
Solves the 'Knights Tour' and various 'Poyomino' puzzles

Install

dune-project
 Dependency

Authors

Maintainers

Sources

knights_tour-0.0.6.tbz
sha256=770624ae4e35d5a58188a1f25e16730d186df8bc4397827fe9a798ea5ca574e3
sha512=b6c7b2473ddf321afaac6b668f9c6820fb8cc872abc494b69edfdff4101c6b660645837b04801e2917c38dd9f19f79bb0a7b029d59a58ddf1e3a235659bab099

doc/knights_tour.collections/Collections/Clist/index.html

Module Collections.ClistSource

A Clist is a 'counted' list. Essentially, its just a list with a counter that tracks its number of elements. This makes it O(1) to get its size.

Sourcetype 'a t = int * 'a list
Sourceval empty : 'a t
Sourceval size : 'a t -> int
Sourceval is_empty : 'a t -> bool
Sourceval singleton : 'a -> 'a t
Sourceval split_n : int -> 'a t -> 'a t * 'a t
Sourceval split : 'a t -> 'a t * 'a t
Sourceval append : 'a t -> 'a t -> 'a t
Sourceval reverse : 'a t -> 'a t
Sourceval hd : 'a t -> 'a
Sourceval tl : 'a t -> 'a t
Sourceval map : ('a -> 'b) -> ('c * 'a list) -> 'c * 'b list
Sourceval cons : 'a -> 'a t -> 'a t
Sourceval (++) : 'a t -> 'a t -> 'a t
Sourceval of_list : 'a list -> 'a t
Sourceval to_list : 'a t -> 'a list
Sourceval with_separator : ('a -> string) -> string -> 'a t -> string