Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30901

Re: fmap(), "inverse" of Python map() function

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 <vasudevram@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.086
X-Spam-Evidence '*H*': 0.84; '*S*': 0.01; 'subject:Python': 0.05; 'python': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python- list': 0.10; 'vasudev': 0.16; 'posted': 0.22; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'run': 0.28; 'once,': 0.29; 'function': 0.30; 'code': 0.31; 'received:google.com': 0.34; 'thanks': 0.34; 'received:209.85': 0.35; 'something': 0.35; 'subject:" ': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'comment': 0.38; 'p.s.': 0.63; 'times': 0.63; 'more': 0.63; '4th': 0.78; 'compose': 0.84; 'thing).': 0.84; 'replied.': 0.91
Newsgroups comp.lang.python
Date Sat, 6 Oct 2012 15:07:00 -0700 (PDT)
In-Reply-To <a27b49d4-408a-4e98-8f63-6c2c9bb67538@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=49.249.142.217; posting-account=9tO8owkAAAA3FGTpR0gRxfE7SAV9In1Y
References <727ec5d8-d292-4012-ba87-da77a1040c6a@googlegroups.com> <CALwzidmE5_LyKfEGqAGeN0Uv+g1fFo+ztjhZdr3b3vbRRnTvJA@mail.gmail.com> <CABicbJKNa18Qw5sN-kkxv+jOnbXF868wJGaaZ+T9Vsa3v8vrkw@mail.gmail.com> <CALwzidkrUcLwHM_mgkcYd58y5rzDwierXR7ASzXjdxB39-DdbA@mail.gmail.com> <mailman.1882.1349479899.27098.python-list@python.org> <a27b49d4-408a-4e98-8f63-6c2c9bb67538@googlegroups.com>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 49.249.142.217
MIME-Version 1.0
Subject Re: fmap(), "inverse" of Python map() function
From vasudevram <vasudevram@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.1911.1349561230.27098.python-list@python.org> (permalink)
Lines 6
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1349561230 news.xs4all.nl 6932 [2001:888:2000:d::a6]:53579
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30901

Show key headers only | View raw


 
> Thanks to all who replied. Always good to learn something new.

P.S. A reader posted a good comment with Scala as well as Python code for a compose function (basically same functionality as fmap, or more - the compose once, run many times thing). It's the 4th comment on my blog post.

- Vasudev

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

fmap(), "inverse" of Python map() function vasudevram <vasudevram@gmail.com> - 2012-10-05 13:19 -0700
  Re: fmap(), "inverse" of Python map() function Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-05 15:31 -0600
  Re: fmap(), "inverse" of Python map() function Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-05 15:43 -0600
  Re: fmap(), "inverse" of Python map() function Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-10-05 18:52 -0400
  Re: fmap(), "inverse" of Python map() function Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-05 17:24 -0600
  Re: fmap(), "inverse" of Python map() function Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-10-05 19:30 -0400
    Re: fmap(), "inverse" of Python map() function vasudevram <vasudevram@gmail.com> - 2012-10-06 11:57 -0700
      Re: fmap(), "inverse" of Python map() function vasudevram <vasudevram@gmail.com> - 2012-10-06 15:07 -0700
      Re: fmap(), "inverse" of Python map() function vasudevram <vasudevram@gmail.com> - 2012-10-06 15:07 -0700
    Re: fmap(), "inverse" of Python map() function vasudevram <vasudevram@gmail.com> - 2012-10-06 11:57 -0700

csiph-web