Deutsch English Français Italiano |
<20240830231523.789@kylheku.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Kaz Kylheku <643-408-1753@kylheku.com> Newsgroups: comp.lang.lisp,comp.lang.scheme Subject: Re: Emacs Lisp's "mapconcat" in Common Lisp? Date: Sat, 31 Aug 2024 06:19:55 -0000 (UTC) Organization: A noiseless patient Spider Lines: 15 Message-ID: <20240830231523.789@kylheku.com> References: <vatk56$md9s$1@dont-email.me> <vatlqs$mk6q$1@dont-email.me> Injection-Date: Sat, 31 Aug 2024 08:19:56 +0200 (CEST) Injection-Info: dont-email.me; posting-host="f97a594c41957bc9e61a815e61b46e34"; logging-data="969225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lKJrOJSx33wqVQxYEytJ2GOZvX4E64AI=" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:exMxh2GJIh8xqFs0Schkw4WUINc= Bytes: 1459 On 2024-08-30, B. Pym <Nobody447095@here-nor-there.org> wrote: > Shorter: > > (define (mapconcat fun lst sep) > (string-join (map (compose x->string fun) lst) (x->string sep))) "Concatenate" is a pleonasm for "catenate", which is based on a Latin root for "chain". Chaining is implicitly together ("con"). Even the Unix dolts understood this, so we have /bin/cat and strcat, and not /bin/concat and strconcat. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca