unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: "Jan Synáček" <jan.synacek@gmail.com>
To: guile-devel <guile-devel@gnu.org>
Subject: (list-head lst k) with k longer than (length lst)
Date: Tue, 17 Nov 2015 11:53:05 +0100	[thread overview]
Message-ID: <CACA+5f3nftSxcKNGyWS78JzC_3QX=YrDZKO1p_E3qHdy8z57_A@mail.gmail.com> (raw)

Hello,

I'm getting:

scheme@(guile-user)> (list-head '(1 2 3) 5)
ERROR: In procedure list-head:
ERROR: In procedure list-head: Wrong type argument in position 1
(expecting pair): ()

This looks pretty much like a bug to me. Shouldn't list-head return
the entire list when the 'k' is bigger than its length? If that is not
the case, at least the error is really confusing. I'm using Guile
2.0.11.

Cheers,
-- 
Jan Synáček



             reply	other threads:[~2015-11-17 10:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-17 10:53 Jan Synáček [this message]
2015-11-17 13:44 ` (list-head lst k) with k longer than (length lst) Chris Vine
2015-11-17 21:27   ` Mark H Weaver
2015-11-18  8:07     ` Jan Synáček

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/guile/

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

  git send-email \
    --in-reply-to='CACA+5f3nftSxcKNGyWS78JzC_3QX=YrDZKO1p_E3qHdy8z57_A@mail.gmail.com' \
    --to=jan.synacek@gmail.com \
    --cc=guile-devel@gnu.org \
    /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).