Browse thread
Re: large hash tables
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Damien Doligez <damien.doligez@i...> |
| Subject: | Re: [Caml-list] Re: large hash tables |
On 2008-02-20, at 17:02, Christopher L Conway wrote:
>> let newList = List.rev_append [newElement] oldList in
>
> This is what is known as a "functional anti-pattern" [1].
Not really. This is just a rather long-winded way to write
let newList = newElement :: oldList in
but it doesn't take much more time or memory to execute.
-- Damien