unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim Visher <tim.visher@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs <help-gnu-emacs@gnu.org>
Subject: Re: Generic `tree-seq` function definition?
Date: Fri, 6 Sep 2013 12:05:05 -0400	[thread overview]
Message-ID: <CAHa53uyFoGn8rwg7P=W6F3s-tuBv477e7XAROk-gTqyfJfa57A@mail.gmail.com> (raw)
In-Reply-To: <jwvsixi0ylw.fsf-monnier+gnu.emacs.help@gnu.org>

On Fri, Sep 6, 2013 at 11:17 AM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
> > (defun tree-seq (branch? children root)
> >   (cl-labels ((walk (node)
> >                     (cons node
> >                           (if (funcall branch? node)
> >                               (cl-mapcan 'walk (cddr (funcall children
>                                            ^^^^^
>
> This is the `walk' symbol.  You want the `walk' function instead.
> I.e. use #'walk

Thank you!

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail



  reply	other threads:[~2013-09-06 16:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1476.1378476077.10748.help-gnu-emacs@gnu.org>
2013-09-06 15:17 ` Generic `tree-seq` function definition? Stefan Monnier
2013-09-06 16:05   ` Tim Visher [this message]
2013-09-06 14:00 Tim Visher

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CAHa53uyFoGn8rwg7P=W6F3s-tuBv477e7XAROk-gTqyfJfa57A@mail.gmail.com' \
    --to=tim.visher@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).