Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.050 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'pop': 0.07; 'sfxlen:2': 0.11; 'cc:addr:python-list': 0.15; 'compute': 0.16; 'concat': 0.16; 'enough?': 0.16; 'readable': 0.16; 'subject:programming': 0.16; 'resulting': 0.18; 'wrote:': 0.21; 'replace': 0.22; 'header :In-Reply-To:1': 0.22; 'header:User-Agent:1': 0.23; 'have,': 0.23; 'cc:no real name:2**0': 0.26; 'cc:addr:python.org': 0.27; 'equal': 0.27; 'push': 0.27; 'question': 0.30; 'cc:2**0': 0.31; 'two': 0.35; 'list': 0.37; 'some': 0.37; 'your': 0.60; "here's": 0.61; 'name': 0.61; 'restore': 0.63; 'header:Received:2': 0.63; 'numbers': 0.65; 'received:194': 0.72; 'streams': 0.84; 'average': 0.96 X-IronPort-AV: E=Sophos;i="4.75,319,1330902000"; d="scan'208";a="275003" X-Virus-Scanned: amavisd-new at zimbra.sequans.com Date: Mon, 26 Mar 2012 11:27:19 +0200 From: Jean-Michel Pichavant User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) MIME-Version: 1.0 To: Kiuhnm Subject: Re: Stream programming References: <4f6c9e17$0$1383$4fafbaef@reader2.news.tin.it> In-Reply-To: <4f6c9e17$0$1383$4fafbaef@reader2.news.tin.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332754047 news.xs4all.nl 6851 [2001:888:2000:d::a6]:41716 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22166 Kiuhnm wrote: > [snip] > > numbers - push - avrg - 'med' - pop - filter(lt('med'), ge('med'))\ > - ['same', 'same'] - streams(cat) - 'same' > > It reads as > > "take a list of numbers - save it - compute the average and named it > 'med' - restore the flow - create two streams which have, respect., > the numbers less than 'med' and those greater or equal to 'med' - do > the /entire/ 'same' process on each one of the two streams - concat > the resulting streams - name all this /entire/ process 'same'. > Not readable enough? Replace 'same' with 'qsort'. > > Is that readable or am I going crazy? [note: that's a rhetorical > question whose answer is "That's very readable!"] > > Kiuhnm Here's a rhetorical answer to your question : whatever you're taking, I want some ! JM