Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Caml-list] list module with O(1) append function

4 views
Skip to first unread message

Jeff Shaw

unread,
Nov 29, 2007, 8:41:11 PM11/29/07
to caml...@inria.fr
Dear Caml Community,

I have a tool for your use (just give me credit if you use it, please :-) )

http://pastebin.com/f32365e1f

Questions? Comments? Suggestions? Am I reinventing the wheel? Even if I
am, I hope someone finds this useful!

Sincerely,
Jeff

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Jeffrey Loren Shaw

unread,
Nov 29, 2007, 9:16:08 PM11/29/07
to caml...@inria.fr
tail-rec cons:

let cons a l =
Append ([a], l)


Also, me and zmdkrbou at freenode.net #ocaml are wondering what exactly the
performance characteristics of this list module are. Specifically, when the
lists are constructed only using library functions.

0 new messages