Deutsch English Français Italiano |
<vbjbio$1qof8$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "B. Pym" <Nobody447095@here-nor-there.org> Newsgroups: comp.lang.lisp,comp.lang.scheme Subject: Re: shootout: implementing an interpreter Date: Sun, 8 Sep 2024 05:09:49 -0000 (UTC) Organization: A noiseless patient Spider Lines: 17 Message-ID: <vbjbio$1qof8$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Injection-Date: Sun, 08 Sep 2024 07:09:49 +0200 (CEST) Injection-Info: dont-email.me; posting-host="28a2661e92d5fbf480e61cc300081820"; logging-data="1925608"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rUJSspL1EYlZxS5Xyf69U" User-Agent: XanaNews/1.18.1.6 Cancel-Lock: sha1:QsZxfRbisuD/ENsXYW6PNskBlIg= Bytes: 1523 Frank Buss wrote: > Looks like the Haskell syntax is not good enough, because there is Template > Haskell and doesn't look like it is invented by people who don't know how > to write it with higher order functions, because there are functions in the > Haskell List package like this: > > -- | The 'zip4' function takes four lists and returns a list of > -- quadruples, analogous to 'zip'. > zip4 :: [a] -> [b] -> [c] -> [d] -> [(a,b,c,d)] > zip4 = zipWith4 (,,,) Scheme (map list '[2 3 4] '[20 30 40] '[200 300 400] '[2000 3000 4000]) ===> ((2 20 200 2000) (3 30 300 3000) (4 40 400 4000))