Newsgroups: comp.lang.lisp, comp.lang.python, comp.lang.scheme, comp.lang.functional
From: my-first-name.my-last-n...@jpl.nasa.gov (Erann Gat)
Date: Mon, 06 Oct 2003 12:19:54 -0700
Local: Mon, Oct 6 2003 3:19 pm
Subject: Re: Python syntax in Lisp and Scheme
In article <eppstein-9700A3.10461306102...@news.service.uci.edu>, David
Eppstein <eppst...@ics.uci.edu> wrote: You left out the with-collector part. > In article > <my-first-name.my-last-name-0610030955090...@k-137-79-50-101.jpl.nasa.go > v>, > my-first-name.my-last-n...@jpl.nasa.gov (Erann Gat) wrote: > > > : Here's another example of what you can do with macros in Lisp: > > > : (with-collector collect > > > : This returns a list of all the lines in a file that have some property. > > > OK, that's _definitely_ just a filter: filter someproperty somefilename > > The net effect is a filter, but again, you need to stop thinking about the > Answer 1: literal translation into Python. The closest analogue of > def lines_with_some_property(some_file_name): But it's true that my examples are less convincing given the existence of I'll try to come up with a more convincing short example if I find some E. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||