From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Corwin Brust Newsgroups: gmane.emacs.help Subject: Re: count char in string [The Emacs Challenge Competition - round 2, with fallout] Date: Wed, 28 Oct 2020 20:15:15 -0500 Message-ID: References: <87r1pj41wa.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29434"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs mailing list , Emanuel Berg To: Noam Postavsky Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 29 02:15:53 2020 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 1kXwXh-0007XC-2N for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 29 Oct 2020 02:15:53 +0100 Original-Received: from localhost ([::1]:32832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXwXf-0001Ve-VX for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 21:15:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXwXK-0001TW-Cm for help-gnu-emacs@gnu.org; Wed, 28 Oct 2020 21:15:30 -0400 Original-Received: from mail-ej1-f42.google.com ([209.85.218.42]:42051) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXwXI-0005u0-KF for help-gnu-emacs@gnu.org; Wed, 28 Oct 2020 21:15:30 -0400 Original-Received: by mail-ej1-f42.google.com with SMTP id h24so1540883ejg.9 for ; Wed, 28 Oct 2020 18:15:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qJpT8C+DlSiqV4CouwCuFlcNiftmblMGwnwsaGgJqW4=; b=t/ySL+05HFz+QlJdyT433jSiXYSCp3TC0by6k1ile0j971RRV7riNLEN7LwB/3MKey nh7QnMo9IzaLPv4rSay7OnKxOgcTHKme+IpFo+NLvdF3+9viswlEKF/IuiamHu07PlsR SJFW/C/6Mfv0g8cr+XgWfBc2wxa5gaWGYXRuMpEQBowdQmqi8udVaK4uUeN8YclGkl1y RoAtekHFQ7x53enP4Y5wbmZbD6S8bm1++44k2VbtHfWWjK7K3U/jXMue1lrdf0MTSX2r Cdwr9sf7MP2Ph1ky3M9o0bIbNkonGPiTARJceNS1o5VCZjj64cERsoq96ZBi1s16yJ1o OAGw== X-Gm-Message-State: AOAM5323o6wzdjfSzVkLSSpLmCe2cpQSrl2Xk9AESWBWbC/1Yqr/FZXk lEOLZsx51QQJaDKR6PSgM/VnwTB8E3ua375m4pg= X-Google-Smtp-Source: ABdhPJy3FXZP3oEd3AGIdL8NLxhicuz66OAOQcZPQ/qGkTc5WTTrVO/D3Na8nKavQRkxZhhsTLrpUKU9N7V39VIRiDU= X-Received: by 2002:a17:907:2084:: with SMTP id pv4mr1819638ejb.315.1603934126985; Wed, 28 Oct 2020 18:15:26 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=209.85.218.42; envelope-from=mplscorwin@gmail.com; helo=mail-ej1-f42.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/28 21:15:27 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:124791 Archived-At: On Wed, Oct 28, 2020, 12:19 PM Noam Postavsky wrote: > You don't need the seq-into, just pass string directly to seq-count. Oh -- nice, thanks Noam!