1 (* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
8 functor LazyAppendReverse(): APPEND_REVERSE =
11 structure L' = LazyListLength(LazyList)
19 structure LazyAppendReverse = LazyAppendReverse()
21 (* figure 1 of Okasaki96 *)
22 structure QueueAmortizedConst =
23 PersistentQueue(EarlyQueue(LazyAppendReverse))