Justin Goguen schrieb:
My purpose is to have operations such as [aa..bc] be possible, with its
result being [aa, ab, ac ..snip.. ba, bb, bc]
... what do you want to get, if the lengths of the start and the end
string do not match?
Maybe what you are after is the Ix class:
Prelude
Andrew Wagner wagner.andrew at gmail.com writes:
Err, is this just for academic purposes, or is there some deeper reason you
want an Enum instance of String? That will dictate how to define the functions.
For example, you could just as easily imagine other definitions of fromEnum,
such
On 2008 Dec 29, at 23:27, Justin Goguen wrote:
My purpose is to have operations such as [aa..bc] be possible,
with its
result being [aa, ab, ac ..snip.. ba, bb, bc]
The example you provided for fromEnum seems to break down after a
string length
of about 5 or so.
It will; toEnum and
On Mon, Dec 29, 2008 at 11:27 PM, Justin Goguen
adek...@hamiltonshells.ca wrote:
My purpose is to have operations such as [aa..bc] be possible, with its
result being [aa, ab, ac ..snip.. ba, bb, bc]
Are you planning to have this restricted to lower-case letters?
According to Char, one might