Article View: comp.lang.functional
Article #1202Re: How to improve the readability of (any) LISP or any highlevel functional language to the level of FORTH ?
From: LanX
Date: Sun, 02 Jan 2011 15:01
Date: Sun, 02 Jan 2011 15:01
13 lines
2475 bytes
2475 bytes
Paul Rubin schrieb: > That is pretty ugly; in Haskell you could write > > my_list = [1, 1, 1, 1, 2, 3, 3, 1, 1, 4, 5, 5, 5, 5] > main = print [head xs | xs <- group my_list] does this really produce the desired output? Will the second 1 really be printed? And why do you guys switch to operate on digits instead of strings?
Technical Details
Message-ID:
<ce0f5c3b-bc71-4868-8d2b-5495583ccfa8@w18g2000vbe.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!w18g2000vbe.googlegroups.com!not-for-mailReferences:
<80ceeca0-1d32-47d1-ba96-feb4d9729c3a@v17g2000yqv.googlegroups.com> <87pqsgk8v9.fsf@kuiper.lan.informatimago.com> <ca15d8c3-86db-46fd-b35f-1a2596475769@n32g2000pre.googlegroups.com> <9e7a7683-a92a-4e88-a6f1-9e6a6bd2f057@z9g2000yqz.googlegroups.com> <aa0e6de9-26c7-4a98-93af-24d0188a3506@m35g2000vbn.googlegroups.com> <3bd9f0cb-a400-4332-adf2-27cddb1a2db6@l7g2000vbv.googlegroups.com> <1347a932-5751-4c20-9c4a-5594ed860ea6@35g2000prb.googlegroups.com> <7x8vz3vm4v.fsf@ruckus.brouhaha.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 107f24,1641de092071599d X-Google-NewGroupId: yes X-Google-Thread: f4fd2,1641de092071599d X-Google-NewGroupId: yes X-Google-Thread: 103b8b,1641de092071599d X-Google-NewGroupId: yes X-Google-Thread: fd7c9,1641de092071599d X-Google-NewGroupId: yes X-Google-Thread: f907c,1641de092071599d X-Google-NewGroupId: yes X-Google-Attributes: gid4e63bbc566,gidf85ca024c1,gid39ae015015,gid2832dde05d,gidee3de009bc,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!w18g2000vbe.googlegroups.com!not-for-mail From: LanX <lanx.perl@googlemail.com> Newsgroups: comp.lang.functional,comp.lang.lisp,gnu.emacs.help,comp.lang.forth,comp.lang.prolog Subject: Re: How to improve the readability of (any) LISP or any highlevel functional language to the level of FORTH ? Date: Sun, 2 Jan 2011 07:01:54 -0800 (PST) Organization: http://groups.google.com Lines: 13 Message-ID: <ce0f5c3b-bc71-4868-8d2b-5495583ccfa8@w18g2000vbe.googlegroups.com> References: <80ceeca0-1d32-47d1-ba96-feb4d9729c3a@v17g2000yqv.googlegroups.com> <87pqsgk8v9.fsf@kuiper.lan.informatimago.com> <ca15d8c3-86db-46fd-b35f-1a2596475769@n32g2000pre.googlegroups.com> <9e7a7683-a92a-4e88-a6f1-9e6a6bd2f057@z9g2000yqz.googlegroups.com> <aa0e6de9-26c7-4a98-93af-24d0188a3506@m35g2000vbn.googlegroups.com> <3bd9f0cb-a400-4332-adf2-27cddb1a2db6@l7g2000vbv.googlegroups.com> <1347a932-5751-4c20-9c4a-5594ed860ea6@35g2000prb.googlegroups.com> <7x8vz3vm4v.fsf@ruckus.brouhaha.com> NNTP-Posting-Host: 89.14.203.179 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1293980515 4980 127.0.0.1 (2 Jan 2011 15:01:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 2 Jan 2011 15:01:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w18g2000vbe.googlegroups.com; posting-host=89.14.203.179; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe)