From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Platon Pronko Newsgroups: gmane.emacs.help Subject: Re: [External] : Determine whether a list is an alist Date: Thu, 13 Jul 2023 19:06:22 +0300 Message-ID: <78ff34f4-a89a-fe18-2681-6eea818b8491@gmail.com> References: <7d67c066-c4d7-a568-4dcf-ddfc6b1918fc@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12104"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Cc: uzibalqa via Users list for the GNU Emacs text editor To: uzibalqa , Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 13 18:07:10 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1qJyqU-0002vN-HW for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 13 Jul 2023 18:07:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJypp-0004Zp-J6; Thu, 13 Jul 2023 12:06:29 -0400 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 1qJypo-0004Zd-Qj for help-gnu-emacs@gnu.org; Thu, 13 Jul 2023 12:06:28 -0400 Original-Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJypn-0006oP-4m for help-gnu-emacs@gnu.org; Thu, 13 Jul 2023 12:06:28 -0400 Original-Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9923833737eso118720366b.3 for ; Thu, 13 Jul 2023 09:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689264385; x=1691856385; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/yaq+hZ7DjYEJ7/9Kq1iHpPIgKc6GPnc8hGCc9Ilgb8=; b=jAKuuZPXlU1sOxfUZC1j1PvRW6k6IWY+2t9AWYXvBk0DmVexf1r+SARScRR7vLKC6M pQGQ1+7No85X6PzX4zgS9jv5wafLZgpiZBt7EtUM1RSeOLt/2MRsKKG0R+XVGl0x6WQf o8/IitcAZYfuG8BaiMVeE2RPsMH34cXwarUEZUjxD7O4kDalgluQ4Y+c/h4DO8jbD7Fc 6xQFbOcraUVTCLFJSkxiEtP+ntdVjQp8lVwVhOYo2cYtlddishx47DlwnfK32JfjhCMK RQ1oo+qja53M97sfxCQxbKCt35dCjrLSXgPSXgbC2vIyU9VH2ZTvPx8QeT5Z0kSRZ9ms BWGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689264385; x=1691856385; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/yaq+hZ7DjYEJ7/9Kq1iHpPIgKc6GPnc8hGCc9Ilgb8=; b=VjmW8Pya6km3KFrLmDp21gKcOmoOgdcLy5Z3hNMa4LRIyRdGVMRh9m4HeyIDHSYNU+ s7LxydCWNEYRNw3KUjRAiOok+Gr09CoCLF5rjkcKNLeoU3i7fscOWYyb0qFtz9DkJwUo 5CiyyaPDLzw/9P3A0BMvS91ceNiXqrZwV8JilNdoiVv7C+q7SrrYKGZGq1L8nBEr0ggv uBGR5Tf/OrmrGk0KhdpgnzrLrFoLfa6laVzv+iQCVv1RdThh+Td7/nktVfIrEEzkoBLR yz0V8Q6nk0fK6te6C0aGP3yEYfqvFqMctfnSjscGZT+3r1+WPKdaO6gyQne5DcPkrgxS MDkA== X-Gm-Message-State: ABy/qLY+iuGmxcsCziAeKsrRmbB+flAMm3ykDF1XcBf92OYkm9EMIQEN ZuEfZ8p3F7yZxPcqs79qZgTklb3YRf8= X-Google-Smtp-Source: APBJJlHrFxLKUJJQwhHCvaGIaFdmzwOnk/vjL1mYObKH7Fk3gnxA6cTPjZFdBEHd/zsnIqmT3thcSg== X-Received: by 2002:a17:906:51d3:b0:96f:e45f:92e9 with SMTP id v19-20020a17090651d300b0096fe45f92e9mr2266544ejk.16.1689264385178; Thu, 13 Jul 2023 09:06:25 -0700 (PDT) Original-Received: from [192.168.0.103] ([45.11.42.236]) by smtp.gmail.com with ESMTPSA id hh10-20020a170906a94a00b0098866a94f14sm4178027ejb.125.2023.07.13.09.06.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jul 2023 09:06:24 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=platon7pronko@gmail.com; helo=mail-ej1-x62d.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 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, NICE_REPLY_A=-0.096, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144270 Archived-At: On 2023-07-13 18:57, uzibalqa wrote: > If I want to print the alist in (Key . Value) way, how would one skip > extraneous (non-cons) list entries ? There's a consp function that you can use to check if entry is cons or not. (this page is the first result on google for me: https://www.gnu.org/software/emacs/manual/html_node/elisp/List_002drelated-Predicates.html) -- Best regards, Platon Pronko PGP 2A62D77A7A2CB94E