Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #107: The keyboard isn't plugged in


comp / comp.lang.lisp / Re: shootout: implementing an interpreter

SubjectAuthor
o Re: shootout: implementing an interpreterB. Pym

1
Subject: Re: shootout: implementing an interpreter
From: B. Pym
Newsgroups: comp.lang.lisp, comp.lang.scheme
Organization: A noiseless patient Spider
Date: Sun, 8 Sep 2024 05:09 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Nobody447095@here-nor-there.org (B. Pym)
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=
View all headers

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))

1

rocksolid light 0.9.8
clearnet tor