From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.user Subject: Re: Hash table read syntax in guile 2.0 Date: Mon, 18 Feb 2013 10:47:45 +0800 Message-ID: References: <7CB57FD4-FAAA-4F9C-9A04-F6DFA215C344@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1361155671 10254 80.91.229.3 (18 Feb 2013 02:47:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2013 02:47:51 +0000 (UTC) Cc: guile-user To: Hengqing Hu Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Feb 18 03:48:14 2013 Return-path: Envelope-to: guile-user@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 1U7Gm5-0003WV-Ri for guile-user@m.gmane.org; Mon, 18 Feb 2013 03:48:13 +0100 Original-Received: from localhost ([::1]:43761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7Gll-00057m-TW for guile-user@m.gmane.org; Sun, 17 Feb 2013 21:47:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7Glf-00055w-Mk for guile-user@gnu.org; Sun, 17 Feb 2013 21:47:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7Gle-000714-GC for guile-user@gnu.org; Sun, 17 Feb 2013 21:47:47 -0500 Original-Received: from mail-ia0-x230.google.com ([2607:f8b0:4001:c02::230]:33346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7Gle-00070o-Bd for guile-user@gnu.org; Sun, 17 Feb 2013 21:47:46 -0500 Original-Received: by mail-ia0-f176.google.com with SMTP id i18so4775767iac.35 for ; Sun, 17 Feb 2013 18:47:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=pDsgjzE82bbA09fuXqnh6acHUy9eBwX8qh8OGhuEzjQ=; b=Al6eXL0n6sTRExWTzXmTMheqfyUzEoZCd/AnzYN2Memq8DvdlkAMKz3uh5cCR9g8Y7 p2JKa3IlThc0kjg9+JjprIQ1RU+sgTEjUcAxXygkf3Q7Y2S+XhQOsO62L+v+zjq9B6Sg mjbsAxi08OoD+P9t8jLC/9w0m8aZhYcDsDGN8BE1y+eI7vYhHNm1RwuB/ktSebMcGYc7 m0VWFDuGK5Cd/ckpfsnKX94p3pKBp5gpGPW4/gG5yznfWghp/wspfG2sPH1Y8cTEaIFK E6VAbXKcwiPsVblXVerB4vGEHLAYbrrnzM/zWrkSw0aKRQ7tjt//IXYo/tRUJFM4XzPm ODeg== X-Received: by 10.50.12.201 with SMTP id a9mr5930077igc.10.1361155665565; Sun, 17 Feb 2013 18:47:45 -0800 (PST) Original-Received: by 10.64.76.51 with HTTP; Sun, 17 Feb 2013 18:47:45 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c02::230 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10124 Archived-At: On 18 February 2013 10:36, Hengqing Hu wrote: > Thanks for the collaboration. > > You are right, that's what I mean by a deep list. So what do you consider the length of the example deep list, is it two, three, or six? Length implies a particular dimension, which is naturally the ordering of the outer list. Scheme considers: (length '((1 2 3) (4 5 6))) => 2 ? > > One usage of knowing the information is to tell > whether the hash table is empty or not, > Since a hash-empty? procedure is not provided. Yes but, why do you want to know that? Isnt what matters whether a particular key exists or not, and what is its value? This is the primary purpose of hash tables, no? The number of active bindings in the hash table is really just a book keeping detail.