Searchspace.TreequenceSourceA Treequence is 'pure/functional' data structure that represents a finite, ordered sequence of elements. I.e it is much like a list. Unlike a typical list implementation it supports efficient pushing and popping on both the front and back. Thus it can be used interchangeably as a Stack or a Queue without much of a performance penalty.
A 'a t is a Treequence containing elements of type 'a.
map f t applies a function to each element of t, creating a new Treequence with the results.
append s1 s2 Creates Treequence that contains all elements of s1 followed by all elements of s2.