home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!allegra!alice!ark
- From: ark@alice.att.com (Andrew Koenig)
- Newsgroups: comp.lang.functional
- Subject: Re: ml questions
- Message-ID: <24205@alice.att.com>
- Date: 16 Nov 92 05:59:29 GMT
- Article-I.D.: alice.24205
- References: <BxrLL9.A11@csn.org>
- Reply-To: ark@alice.UUCP ()
- Organization: AT&T Bell Laboratories, Murray Hill NJ
- Lines: 18
-
- In article <BxrLL9.A11@csn.org> sullivan@teal.csn.org (Steve Sullivan) writes:
-
- > 1. The sml I'm using, from princeton.edu, includes Harper's notes.
- > His notes document the "system" and "cd" commands.
- > Yet sml apparently doesn't recognize them. How can I get them working?
-
- They're there, but buried in structures. Try System.system
- and System.Directory.cd
-
- > 2. How can I get a function to remember state?
-
- A simple example -- perhaps too simple:
-
- val seed = ref 1;
- fun rand() = (seed := (xx * !seed) mod yy; !seed);
- --
- --Andrew Koenig
- ark@europa.att.com
-