From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help 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 Message-ID: References: <80ceeca0-1d32-47d1-ba96-feb4d9729c3a@v17g2000yqv.googlegroups.com> <87pqsgk8v9.fsf@kuiper.lan.informatimago.com> <9e7a7683-a92a-4e88-a6f1-9e6a6bd2f057@z9g2000yqz.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: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1293982849 9201 80.91.229.12 (2 Jan 2011 15:40:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Jan 2011 15:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 02 16:40:45 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZQ31-0000Me-QU for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jan 2011 16:40:43 +0100 Original-Received: from localhost ([127.0.0.1]:55594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZQ31-00089n-93 for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jan 2011 10:40:43 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!w18g2000vbe.googlegroups.com!not-for-mail Original-Newsgroups: comp.lang.functional, comp.lang.lisp, gnu.emacs.help, comp.lang.forth, comp.lang.prolog Original-Lines: 13 Original-NNTP-Posting-Host: 89.14.203.179 Original-X-Trace: posting.google.com 1293980515 4980 127.0.0.1 (2 Jan 2011 15:01:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-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) Original-Xref: usenet.stanford.edu comp.lang.functional:69076 comp.lang.lisp:297114 gnu.emacs.help:183848 comp.lang.forth:160260 comp.lang.prolog:44009 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78050 Archived-At: 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?