caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Subsequence references or substrings in OCaml
@ 1998-12-18 19:27 Brian Rogoff
  1998-12-21 10:39 ` Christian Lindig
  1998-12-21 15:49 ` Michael Hicks
  0 siblings, 2 replies; 4+ messages in thread
From: Brian Rogoff @ 1998-12-18 19:27 UTC (permalink / raw)
  To: caml-list

Hi,

I've been doing a lot of string processing lately and trying to determine
the correct "functional" approach to string processing. In SML '97 (hey,
you've got to look at the competition ;-) the Basis Library has a
signature SUBSTRING which has a substring type, whose values are just 
triples (s,i,n) where i is the starting index and n the size of the string
s. It turns out that many algorithms are simplified by using this kind of 
representation for strings. 

It also turns out that similar string representations have been used
before; if you hop over to http://www.cs.cmu.edu/~wjh/papers/ you'll see
that "subsequence references" are pretty much the same thing. 

Its simple enough to implement subsequence references as a user defined
type in OCaml, as I've done, but I am curious about whether anyone else
who has used similar libraries would find a built-in substring or 
subsequence ref library useful. 

-- Brian





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-12-29 13:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-18 19:27 Subsequence references or substrings in OCaml Brian Rogoff
1998-12-21 10:39 ` Christian Lindig
1998-12-21 15:49 ` Michael Hicks
1998-12-27 21:03   ` Mark Hayden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).