Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!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.084 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'subject:Python': 0.05; 'variant': 0.07; 'oct': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'meant': 0.21; 'header:In-Reply-To:1': 0.25; 'realize': 0.27; 'message-id:@mail.gmail.com': 0.27; 'that.': 0.30; 'fri,': 0.30; 'received:209.85.215.46': 0.30; 'url:2012': 0.30; 'function': 0.30; 'point': 0.31; 'not.': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'subject:" ': 0.36; 'url:in': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'more': 0.63; 'url:blogspot': 0.64; 'url:10': 0.65; 'special': 0.73; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=xa4g50wqqjCbXrC2zsaILX/Xc9Y3tezwLKVEB+2YRdg=; b=gh7yxKO8PaMumHYxnEuVRC+cCjIjCbkH692FfMsyUAhuvviFLG7MVE5G9tbI8X/WDb s12J2CSAKHvYhZWR6tuhpo30wgZKN4dtPYYjWjFFA7wf+qK43pokBN5J1Puq7GpGqMV+ ro259ugE5YkwyvTp8JlCk4EJERm5m4sfIX03AnIh+QuI+1g24P6Y3WDd3eFberSqEoXH XJklVkTuBnT74TPysXpkLTVgy8w+U6+oeQgLPu+TPhsJEXeNXnBha3ypsZpNwaNaSAnZ SxCNbt10ZjQx7H2mO+nJ/Li/uuo6zN3P4dMZUQpmncYEmBBATazGaC8e2Iuuy7CSnFF+ qJtQ== MIME-Version: 1.0 In-Reply-To: References: <727ec5d8-d292-4012-ba87-da77a1040c6a@googlegroups.com> From: Ian Kelly Date: Fri, 5 Oct 2012 17:24:14 -0600 Subject: Re: fmap(), "inverse" of Python map() function To: Python Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349479486 news.xs4all.nl 6861 [2001:888:2000:d::a6]:52152 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30849 On Fri, Oct 5, 2012 at 4:52 PM, Devin Jeanpierre wrote: > On Fri, Oct 5, 2012 at 5:31 PM, Ian Kelly wrote: >> On Fri, Oct 5, 2012 at 2:19 PM, vasudevram wrote: >>> >>> http://jugad2.blogspot.in/2012/10/fmap-inverse-of-python-map-function.html >> >> Your fmap is a special case of reduce. > > So is map. I realize that. My point is that the function *feels* more like a variant of reduce than of map. > If it's meant as a complaint, it's a poor one. It's not.