From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31613 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: perro tuerto Newsgroups: gmane.text.pandoc Subject: Re: Examples for some pandoc.List methods Date: Thu, 20 Oct 2022 10:16:52 -0700 (PDT) Message-ID: References: <878rlao2x9.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8528_1950574258.1666286212411" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40386"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCMYR75V2YMRBBMFY2NAMGQETH3K74Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 20 19:16:57 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f185.google.com ([209.85.167.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1olZA8-000AJa-QD for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 20 Oct 2022 19:16:56 +0200 Original-Received: by mail-oi1-f185.google.com with SMTP id w136-20020acaad8e000000b003552d4729d6sf123707oie.2 for ; Thu, 20 Oct 2022 10:16:56 -0700 (PDT) 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=1uh6wHeqzmCrgXDTKYHWHGn18MZL9JKPUlvmZ8NrBuw=; b=UR7R8HfpMRl34P8WOS1H+ITGPTTV/poy23q0yJi4LWLpJI/6eiharkPXWrmg4ipXfj 91UB1bQhFli7Qpp3hmx/QclCAHJNQXLtRXyiYAi1rF8vlu8pi9jcg6AHlJv+8gMrBkgK 1nNn0I4bZRMP7EKMJgkqYTTLnjZoyD3nF8KB2wcE646cv75D7cD33VNLJuWElh/nQlru WLtLMbygHLeC83wveI+kSaf3KTFDfEpl/HDhFk3Z2rAhGm3k71eukETk4U/3tBXLSdue hwNOMo26lIziUwkRmeQ6vv21+o1f88j9dAMp9tWMr3jrB6CubNNgXJpd+IK21nuIaRGP 77fQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=1uh6wHeqzmCrgXDTKYHWHGn18MZL9JKPUlvmZ8NrBuw=; b=FtA3ux5eO+DSsIVXHpxaPiGOy6Z0MjCVzvNZOH52TdCtNQuJuVnIzW2wqvCz7WV/jk 9jzBg7IV7U1EalLsy/llO7h9vOC8QL/rqTRu38tRYOcyV6/e1KL9ltbEXPxZpXBLusC+ OZe+Hhqui56kTIs2TM41M9iwuo3ubcpvySaNWK9aYniluxRsPhro+2nXUlt/Ynt4XCXq vrhukQ2kGxIjP08LhZIAu2xTlFVsbHS000LyQNVd0s7Ic2WlCpLYSoL188Dy1aHzKN8T TJyjjdmeKWhzH3h11LhkmkEBaxdkAM5NQJ+AWglh1uYB2qIVBuS20MA5cs26Q8fnG9/w UxFg== 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=1uh6wHeqzmCrgXDTKYHWHGn18MZL9JKPUlvmZ8NrBuw=; b=srCoUUC0sX16MuWMChkKYfNiO9JFocogG6qmIFrKsW8TWC6HHdwtW6o3JA8eB4/tGW PQNwDZ3ON8iP3LUZbrncMzJQr3rGvO9srBB/9pPoyprq41ayBt1yhs4HB6A8CQMXA0Qv zftGe4OSgJ/ElBZs/smWFprb0QlWb+CNfuCArMlC9cgTAAM1V2xJxzRnqWDN2QYUmvxH jNWiNnrtS4HclYhuEmpgZ7V3wBx2PREnDDgbjz+sMreOyigceVogGXuTKP0jGcmot/Hb QYkHu9i/cuqFhguogh0OaXhRadTjrEktHsCvuUrYbEFGjdvZifWibCdSAEUia5vxPrLS 8SjA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf0aH8G/CW0jBRslvy2ovuc7Vpn+7SYL+Wv9YylITOpOSdPSIi73 paztBXl5th211vCEf3Dv8dA= X-Google-Smtp-Source: AMsMyM7sTnWeNbcTVYVrxzkSP/PbNkKXckjBmMd+l8hWhclEn758cXRObLm3GByx97/U9tPbaXj6kQ== X-Received: by 2002:a05:6870:b512:b0:132:98fc:5b79 with SMTP id v18-20020a056870b51200b0013298fc5b79mr24591578oap.11.1666286215594; Thu, 20 Oct 2022 10:16:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:7e83:0:b0:661:91c7:c50b with SMTP id m3-20020a9d7e83000000b0066191c7c50bls40329otp.0.-pod-prod-gmail; Thu, 20 Oct 2022 10:16:53 -0700 (PDT) X-Received: by 2002:a05:6830:6388:b0:661:b5d0:49c4 with SMTP id ch8-20020a056830638800b00661b5d049c4mr7215916otb.318.1666286212954; Thu, 20 Oct 2022 10:16:52 -0700 (PDT) In-Reply-To: <878rlao2x9.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Original-Sender: nika.zhenya-Re5JQEeQqe8AvxtiuMwx3w@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:31613 Archived-At: ------=_Part_8528_1950574258.1666286212411 Content-Type: multipart/alternative; boundary="----=_Part_8529_651761834.1666286212411" ------=_Part_8529_651761834.1666286212411 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That is what I was looking for, thank you! El jueves, 20 de octubre de 2022 a las 9:50:04 UTC-7, Albert Krewinkel=20 escribi=C3=B3: > > 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/de1a8c8f-dc77-4de8-9cbd-f62e38abbcf1n%40googlegroups.com. ------=_Part_8529_651761834.1666286212411 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That is what I was looking for, thank you!

El jueves, 20 de octubre de 2022 a= las 9:50:04 UTC-7, Albert Krewinkel escribi=C3=B3:

perro tuerto <nika....@gm= ail.com> 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 b= ut
> 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/hslu= a/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

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/de1a8c8f-dc77-4de8-9cbd-f62e38abbcf1n%40googlegroups.= com.
------=_Part_8529_651761834.1666286212411-- ------=_Part_8528_1950574258.1666286212411--