From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31611 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Examples for some pandoc.List methods Date: Thu, 20 Oct 2022 18:45:21 +0200 Message-ID: <878rlao2x9.fsf@zeitkraut.de> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12247"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBOHYYWNAMGQEJFIRZUI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 20 18:50:07 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f64.google.com ([209.85.167.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1olYk9-00030E-J9 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 20 Oct 2022 18:50:05 +0200 Original-Received: by mail-lf1-f64.google.com with SMTP id k19-20020ac24f13000000b004a49391ef9esf62804lfr.9 for ; Thu, 20 Oct 2022 09:50:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666284605; cv=pass; d=google.com; s=arc-20160816; b=h1to7hpVsWyW5rKWtfbeNjpUjC+7yJaqjemw/hSI3Xbn6RCOQJvxpy2DtcVQbZf+bp TKCgyA7RoAuvjz44VdniybCRfiAjnmePN8k3GvSZWobwCL/Wfy+VV8pbu8SRi8U4gOy6 o1gTFXQ+9tEk4w8NAZZKumKOH+VvHvaidZMorgvXIyMKCcSPKrYxDp6/Jb5gafgwlCZX Y2NUf++fckKFb9gsOFfJQ5isF5yYl8NM8I6M678AUqUEAy3kDM3z9lcbXSfiIfnnvX4C WuV6+nftco5cE1DlghrJZvdhq44yjKtkT2LxtNF2doXvYdxBBH78RmGGPMRZCQY2/ODM rssQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :mime-version:message-id:in-reply-to:date:subject:to:from:references :sender:dkim-signature; bh=o8Y8L71dqeAfIEfZr1Ok4Ons5HycdVzwmXBWEC8eAlc=; b=dQ/NzYS4PutWjsodLk8uxWRR9zhNp6rax8EKD5CU+VwLsQo97JDBpjv3+9dwduXZyV W43p+OGQPeJop5TKDEuvdOQqp6t1OHJTGcElsl8jJYDuVRFM/P3ER1WdF2uCkWE/7job DeEhHD4a9OzuoWjhqs7r02UB8LOTFe3fA7s+tJXS2u17ndBj8Ff9JIpDn4Hxzk5+AFCr M05v19VZojZ8XWUFh4SHND3JsGxe3zisTfc/lIyRMMuyHovfIoTg1B3F7r47RtdsTome Wm358CHTC0rVtEdqipkwE85JqNwz66nYjZoHr2vG2qH+37NkEMRnzh5YEYcVM3mSRZdc L6dg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references:sender:from:to:cc:subject:date :message-id:reply-to; bh=o8Y8L71dqeAfIEfZr1Ok4Ons5HycdVzwmXBWEC8eAlc=; b=IeIh1D4CSB18EGHOU0dtKBg2U8/QIVb1vNOS71j06JiBL/4llCEBV8VOwxlJJEhd7p kt7Rrn34kIS0WvzunjkRbx1eG1WFq9TvXEDLM37zdoYqe3E3QZlg6ge/mj8vsElny3x+ iOZGVoDCEq2LPE1P9phybYD7RlJH5PMvksyDbZ7iqjfiM6JCMoHD18rXcOZeksQOJ9Ah +LnxKmwFqjyB6evZk6kiJbPbp8uLAmkLD637fwiXyANgnTG66iAD5tW2L20FGLuWGJ9a xT7PB2PdtyCHqVikiknGLZ3xfCSq34zcTwUBHwprf8wvGmCyb3+AgY4L76NqWPhxd X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=o8Y8L71dqeAfIEfZr1Ok4Ons5HycdVzwmXBWEC8eAlc=; b=hEgzRXrvjiw2P5qO15l4HRCZKeWsit96ir50cO7cmj4Faf8vVc9NbafodSGSvyDfYG 0Mxpr4NDrFyzXCsUSdnkc42s5rH2FOZFnSqiRILGppVO86clENFHDf2qqxbR2zdf4WOk oGyWrSTbMt4HcjCWx2y5ojnvFSVZqKYMq+6qOKU8jA21PbQatm7XJSlN4lzaorGfQAHT 8FPWkB+8bANmC5G4E/qu6wnvIAmYZH33e/783Ou68ybsNS50EPIQ2u8ithNWJMBcOnfW re74hX+f2ldBVs5yJwcS Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf1mp20k3fHGWQue4bUyS4cXLdykq7pvlYiK/cTEsGAVbZECLpH1 t3mKqmPE3rXCjpPsy21tdF0= X-Google-Smtp-Source: AMsMyM5GI1pdrbnKf1q29FZ+/eugVqbqNFoXYdFiDY2SI7TEUh5GdsDAOydGWROkKa8I2S3K4AFM0g== X-Received: by 2002:a05:651c:101:b0:250:896d:f870 with SMTP id a1-20020a05651c010100b00250896df870mr5483090ljb.235.1666284604852; Thu, 20 Oct 2022 09:50:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:2034:b0:48b:2227:7787 with SMTP id s20-20020a056512203400b0048b22277787ls313647lfs.3.-pod-prod-gmail; Thu, 20 Oct 2022 09:49:59 -0700 (PDT) X-Received: by 2002:a05:6512:328c:b0:4a2:b387:85fb with SMTP id p12-20020a056512328c00b004a2b38785fbmr4749053lfe.686.1666284598997; Thu, 20 Oct 2022 09:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666284598; cv=none; d=google.com; s=arc-20160816; b=TRDJ3gie5m5MHzFmxIrmY8S5/6treC305J/z2ngT0vWfJnK2iPgY0fvzsrdxZ/5U8k CejrpJY0uU7gPiygaoXD+IKmN51zlUMuSM/cqh0BlN4Wh3d60zEWKnY7/gnq808402iL Qfa2S/Zj/SohXu6loUHVKbxeDpDBMH9145yM5OHXZ67U3IojuETIHjBlV6wOBLdmDatp D/cz99bclfqfeqjyyXH1DIejAEjpCEpHcBC8jumPA1T0/V81GuV4tY6dwldIlZN54nXa Wo1NiSmcxuKSd1mnvA6G8t8V5nqLPLdRWr0EWcQ8+if6Um2uKIDWrLz+oQNv8gwnX/i5 M2mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references; bh=kG/BgO5RLHc5zecr0h7Nu21yQgArObLmUEpqOau+bKE=; b=KYfj+/tcSDgJbXxULsDI5H/JrI7ucr6OxavEkyU45Mpl6wQ2SNg6oJzyi2KfIbZGao NneKEXqUpN+cPGI/JdgNNAdIxIqG2/K18LXm2uqNN0c7GSpwwKE2VPQJdRKj+83izQdr kMq2ZJbTQjX+Gg64ZcBdnS/dodIZSMCRVatQToF7SjJR0eNn2EEzJt/+VuNnumksjKuj dpPmT/fiLv2ziPiVKZOKKVHDrJpH/fakj2VYqaR7J2j0lR9z5KhcxHGZYf8Jb+6bxufH cYTZRGJdJSJT4dcKxQpKycEfFFQao4u+AXiPEyBWwMJRkKcD+DxvvKe/oi53aXwQ5YgP Enlg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org. [80.241.56.172]) by gmr-mx.google.com with ESMTPS id bd21-20020a05651c169500b0026fb9b63793si919274ljb.0.2022.10.20.09.49.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 09:49:58 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) client-ip=80.241.56.172; Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4MtYVX2Nm3z9sV8 for ; Thu, 20 Oct 2022 18:49:56 +0200 (CEST) In-reply-to: X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31611 Archived-At: perro tuerto writes: > Hi, I am trying to understand how to implement pandoc.List:find,=20 > pandoc.List:find_if, pandoc.List:filter and pandoc.List:includes but > I don't understand what does =E2=80=9Cneedle=E2=80=9C or =E2=80=9Cpred=E2= =80=9D mean. Can I see some > examples of how to use these methods? Thanks You are right, some examples would help to improve the docs. The test suite for lists contains some code that might help here: https://github.com/hslua/hslua/blob/main/hslua-list/test/test-list.lua E.g., for `find` see lines 79 ff. --=20 Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/878rlao2x9.fsf%40zeitkraut.de.