Groups | Search | Server Info | Login | Register
Groups > pt.comp.programacao > #280
| Path | csiph.com!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Patricia Ferreira <pferreira@example.com> |
| Newsgroups | pt.comp.programacao |
| Subject | mais sobre loops em common lisp |
| Date | Sun, 10 Mar 2024 19:28:54 -0300 |
| Organization | A noiseless patient Spider |
| Lines | 17 |
| Message-ID | <87frwxoh5l.fsf@example.com> (permalink) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | dont-email.me; posting-host="3676b724aa3c0867a5e40ead515e7a4e"; logging-data="3365576"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19MSH+ZWg3QHRf/FvYAmOkwzxeXT4pKHTA=" |
| Cancel-Lock | sha1:hLo1pNTG2pJFAJOYtMRyzLRiEbc= sha1:kIAATjCJ0I4qzRNRFWkMHk+PgKQ= |
| Xref | csiph.com pt.comp.programacao:280 |
Show key headers only | View raw
Eis uma alternativa a loop. Em vez de escrever, por exemplo,
(loop for e in ls
when (> e 3)
collect e)
podemos escrever
(iter (for e in ls)
(when (> e 3)
(collect e))).
Eis uma boa leitura.
https://iterate.common-lisp.dev/doc/Don_0027t-Loop-Iterate.html#Don_0027t-Loop-Iterate
Gostei. É idêntica a loop, mas com vantagens.
Back to pt.comp.programacao | Previous | Next — Next in thread | Find similar
mais sobre loops em common lisp Patricia Ferreira <pferreira@example.com> - 2024-03-10 19:28 -0300
Re: mais sobre loops em common lisp Patricia Ferreira <pferreira@example.com> - 2024-03-10 19:33 -0300
Re: mais sobre loops em common lisp Daniel Cerqueira <dan.list@lispclub.com> - 2024-03-11 19:42 +0000
Re: mais sobre loops em common lisp Patricia Ferreira <pferreira@example.com> - 2024-03-11 20:36 -0300
csiph-web