all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to flatten a one-level-deep list?
Date: Fri, 20 May 2016 19:20:32 +0200	[thread overview]
Message-ID: <87bn40prxb.fsf@mbork.pl> (raw)
In-Reply-To: <87d1ogixj0.fsf@web.de>


On 2016-05-20, at 17:01, Michael Heerdegen <michael_heerdegen@web.de> wrote:

> How would you call the proposed functionality then?
>
> I'm asking because I incidentally need a name for the analog stream
> operation I want to add to stream.el:
>
> #+begin_src emacs-lisp
> (defun stream-??? (stream-of-streams)
>   "Concatenate all streams in STREAM-OF-STREAMS an return the result.
> All elements in STREAM-OF-STREAMS must be streams.  The result is
> always a stream."
>   (stream-reduce #'stream-append (stream-empty) stream-of-streams))
> #+end_src

Concatenate? ;-)

> Thanks,
>
> Michael.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



  reply	other threads:[~2016-05-20 17:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-18  5:12 How to flatten a one-level-deep list? Marcin Borkowski
2016-05-18  8:21 ` tomas
2016-05-18  9:37   ` Marcin Borkowski
2016-05-18 21:07     ` Emanuel Berg
2016-05-20 12:17       ` Stefan Monnier
2016-05-20 15:01         ` Michael Heerdegen
2016-05-20 17:20           ` Marcin Borkowski [this message]
2016-05-20 17:54             ` Michael Heerdegen
2016-05-20 19:51               ` Marcin Borkowski
2016-05-20 22:14                 ` Michael Heerdegen
     [not found] ` <mailman.46.1463559697.6543.help-gnu-emacs@gnu.org>
2016-05-18 17:52   ` Pascal J. Bourguignon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bn40prxb.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.