Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://www.haskell.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. how to input a Let expression (John Moore) 2. Re: how to input a Let expression (Chadda? Fouch?) ---------------------------------------------------------------------- Message: 1 Date: Wed, 22 Dec 2010 20:19:34 +0000 From: John Moore <john.moor...@gmail.com> Subject: [Haskell-beginners] how to input a Let expression To: beginners@haskell.org Message-ID: <aanlktimhdjmmsodgmfgrmwws5razye25e7vwoes3n...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Hi, I'm missing something basic here, I wrote this program a while back. But I cant remember how to work it. Would someone please explain how I enter a value for a variable x,y etc and get this to work. It goes by entering evaluate [][test1]test1 but I cant remember how to write in The Let part and not have it keep ending in -no definotion of a variable. John -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20101222/a4feca79/attachment-0001.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: Test6.hs Type: application/octet-stream Size: 3872 bytes Desc: not available URL: <http://www.haskell.org/pipermail/beginners/attachments/20101222/a4feca79/attachment-0001.obj> ------------------------------ Message: 2 Date: Wed, 22 Dec 2010 21:29:56 +0100 From: Chadda? Fouch? <chaddai.fou...@gmail.com> Subject: Re: [Haskell-beginners] how to input a Let expression To: John Moore <john.moor...@gmail.com> Cc: beginners@haskell.org Message-ID: <aanlkti=bk_v3xa_a58mavxj6x_g9zrtr9vahh3yh_...@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 On Wed, Dec 22, 2010 at 9:19 PM, John Moore <john.moor...@gmail.com> wrote: > Hi, > I'm missing something basic here, I wrote this program a while back. But I > cant remember how to work it. > Would someone please explain how I enter a value for a variable x,y etc and > get this to work. > It goes by entering evaluate [][test1]test1 but I cant remember how to write > in The Let part and not have it keep ending in -no definotion of a variable. Something like : > Let "x" (Val 5) (Var "x") should work (if your program is correct). -- Jeda? ------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 30, Issue 42 *****************************************