From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Is there utility in making hash-table-{keys, values} built-in functions? Date: Thu, 28 Nov 2024 19:40:18 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25433"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Shankar Rao Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 28 19:41:56 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tGjSd-0006Xa-Nf for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Nov 2024 19:41:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGjRQ-0007kh-RY; Thu, 28 Nov 2024 13:40:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGjRB-0007Xq-Kl for emacs-devel@gnu.org; Thu, 28 Nov 2024 13:40:25 -0500 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tGjR8-0006PH-3G for emacs-devel@gnu.org; Thu, 28 Nov 2024 13:40:23 -0500 Original-Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-434a852bb6eso10041555e9.3 for ; Thu, 28 Nov 2024 10:40:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732819220; x=1733424020; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=5HqIisOVlEsZpho+B2ZqC6p3iybELMaPpISQjoZIDfM=; b=jbPF5ZJ7v+6mVVyEgsAY3ktQQjv690AMp6j5mScmiPsZpXh/7lYCzxlaB2IKR5abAc HYFQemFbnNiTDBKCnrnk6tziSkrM2ofjNZzPKJK0uMSwT/ucs4t3pjfZCjBwkcwoQCsO Kumwh8M1TEcOPM7rXkCM005OQdoSVTY33GPWqvsAdiB4Ho5HxsqLOksvuXQYs5snS2zc pHlToTuUbugwwTytoYxe5hg5+oqBpuZyzxq8yUduD3XI/eh/40fhPQy22QbXlL8s+IeK s2uwX8/lJkldS2qz/SqEFTJelOp0LKPEUXoTBO+GNwNYLnEaH0LPgT+qUbEWDP61FkIF hsDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732819220; x=1733424020; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5HqIisOVlEsZpho+B2ZqC6p3iybELMaPpISQjoZIDfM=; b=TSJKI7z2XVjuc29za2VCrmRdfYYBIvJ0fc3pd3jbFkAatpwecn89FfhlXLP3mENUXe 4mqPunL+iZcLHCH31v5IZ0UTbgjKZG8fcsq4V0s1pvZ0xzmekmzMfdcBDpofXqCjl7cP F6zH6dLzF/b9cHv+hIV8tDct7Qy3Jk0hPXT+y6BjErpWayK0nAHUINycqfUTzl/y9d82 QsUcagt9QIa1utSKLulafzh3zK87TukXLVdcoUjk+Oyny40YuRYVe6KU1n1BlEPGMNC6 5HRAEJ3RZo6xtJmgY73GmskMW+7bnvNkZ4XlHrL3sU/1iU7xvekJR3FkLlVX/zqoZPNt vA+Q== X-Gm-Message-State: AOJu0Yy5Ai/FYAj3Unv0CCcZcFdvPXnY88cnmwgtHWppX1dkTMrooajw Tbc4N2ajB8Av1hJ/6PPIl4Fn0GqG0H2Tuxz04tGlJxOUSpEU/BHZ6E0Fdw== X-Gm-Gg: ASbGncvcZLQlvgVfRHgdhLUy2tC5Aqd/UHkfJ+anLp6XZ9eBmqzDXDFWiCWb5Rl/3Hl vMjwYZuuHUy4Urme4COabUarodJtJyJ2WihbZ59pzeQtq82O8X3fuRLv6VF0X4c7w5xTIQ8EnKW jEn7XgyVZMpVu1SStT/IHAWMtLvbYJvsp3GTjQ4Az8YxLZPNaDxWUOs5RGC1yQgW/ea0JKaZG7/ 2Fr2oqDbTspkM7SO4akMIQq+gLGUVzkt+880p+38+lSI0aDvBlHgk0bIPVr96jJMs/YQhiTsaFF yyqV+k33wsxOjGItf9ZDyy38LovL5dwgUk/lYyKBaDZKLzGbrgFtH7hS8Dg= X-Google-Smtp-Source: AGHT+IHqhsUxrE/J2418rae1JGbQrzg0MzA+Dh2lrMxdWZOYTZJ31ba28MO+ADIGaXjU570FYpjisw== X-Received: by 2002:a05:600c:4f07:b0:431:52da:9d67 with SMTP id 5b1f17b1804b1-434a9dbbfbbmr85426275e9.3.1732819219779; Thu, 28 Nov 2024 10:40:19 -0800 (PST) Original-Received: from pro2 (p200300e0b71ddf00c9d78324a2bf8c10.dip0.t-ipconnect.de. [2003:e0:b71d:df00:c9d7:8324:a2bf:8c10]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434b0d9bee2sm29928745e9.1.2024.11.28.10.40.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2024 10:40:19 -0800 (PST) In-Reply-To: (Shankar Rao's message of "Thu, 28 Nov 2024 12:53:25 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325829 Archived-At: Shankar Rao writes: > Hello all, > > I noticed that the functions hash-table-keys and hash-table-values are > just wrappers around maphash. This means that there is no way to > iterate over a hash-table without using a lambda. If this is about syntax, cl-loop has support for hash tables. For example for x being the hash-keys of something using (hash-value y)