suspensions
Luke_H <luke.halliwell-/[email protected]> Fri, 18 Jan 2008 12:37:32 -0800 (PST)
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
I've been working through the book "Purely functional data structures" using SML/NJ and came to the $ notation for creating suspensions. It seems as though SML/NJ has some kind of $-based notation, but it doesn't behave the same way as the one in the book. For instance, $f x doesn't work - it seems to bind as ($f) x - and writing $(f x) isn't what you want because that evaluates "f x" eagerly. The samples in the book don't compile and I can't find any mention of the $ notation in the documentation or indeed anywhere online. Can anyone explain how the $ stuff works in SML/NJ? Any help would be much appreciated :) -- View this message in context: http://www.nabble.com/suspensions-tp14957803p14957803.html Sent from the SML/NJ mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/