From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?SmFuIFN5bsOhxI1law==?= Newsgroups: gmane.lisp.guile.devel Subject: (list-head lst k) with k longer than (length lst) Date: Tue, 17 Nov 2015 11:53:05 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447757603 30487 80.91.229.3 (17 Nov 2015 10:53:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2015 10:53:23 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Nov 17 11:53:14 2015 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zydst-0004KV-NM for guile-devel@m.gmane.org; Tue, 17 Nov 2015 11:53:11 +0100 Original-Received: from localhost ([::1]:57359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zydss-0006x5-U3 for guile-devel@m.gmane.org; Tue, 17 Nov 2015 05:53:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zydsp-0006uP-79 for guile-devel@gnu.org; Tue, 17 Nov 2015 05:53:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zydso-0005H1-Dv for guile-devel@gnu.org; Tue, 17 Nov 2015 05:53:07 -0500 Original-Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:34914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zydso-0005Gm-7i for guile-devel@gnu.org; Tue, 17 Nov 2015 05:53:06 -0500 Original-Received: by wmdw130 with SMTP id w130so149181501wmd.0 for ; Tue, 17 Nov 2015 02:53:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=TrrekcUUovoCN8LObJuKQ5mx5eZLj8AR9qnDJqJ7gHk=; b=Ya6bzsA4d6EIpYM1uISU2SikhzpzSs+C47MAZWJhVuEaIUKoBsS3rKoAZkKQ38Nvfw NRER1E1jlZmmp1mWuW9SrPH8H0exXQdlF7Fvw59NWdhcfiM0ic3w6cLqRBC8ONm5r8DH qWR9FXAA6otTtWzWe+uNw1YmXtP9wXsyydWEBUajkxH7VRw4QdXQUDtdoxdRstOES9iV Ke9ixNu34GYEtF7XAL43uJaXPLcfMFlXCECvFYfnZZwzfEdQH4Zxwsy4Kygz0JWlhmeE xz0NVr0oTypw9kqQMkr5+zuAMHwDAk6didcAFBgXhawKaSpMvTyqD5uapwGg/oOWjL4S eAcw== X-Received: by 10.28.26.78 with SMTP id a75mr1827289wma.13.1447757585460; Tue, 17 Nov 2015 02:53:05 -0800 (PST) Original-Received: by 10.27.155.66 with HTTP; Tue, 17 Nov 2015 02:53:05 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c09::22c X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:18027 Archived-At: 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, --=20 Jan Syn=C3=A1=C4=8Dek