Article View: comp.lang.functional
Article #913Re: ml questions
From: Andrew Koenig
Date: Mon, 16 Nov 1992 05:59
Date: Mon, 16 Nov 1992 05:59
18 lines
1021 bytes
1021 bytes
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
Technical Details
Message-ID:
<24205@alice.att.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!allegra!alice!arkReferences:
<BxrLL9.A11@csn.org>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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