Deutsch   English   Français   Italiano  
<v4le1s$3n6db$4@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!feed.opticnetworks.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.python,comp.lang.lisp
Subject: Re: diff1(x) in Python: True if all adjacent items (Posting On
 Python-List Prohibited)
Date: Sun, 16 Jun 2024 01:10:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <v4le1s$3n6db$4@dont-email.me>
References: <v4kuk5$3k353$1@dont-email.me> <8734pd7v1r.fsf@nightsong.com>
	<v4lanu$3mt2j$1@dont-email.me> <v4ld02$3mt2j$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 16 Jun 2024 03:10:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="bd45dcd0b5a25b060647b4de82583354";
	logging-data="3905963"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19T3BHx7m0L0jtQ2Dqs8DAg"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:nXzlqmEksZ/gPpHwbKjdGHc5ktY=
Bytes: 1387

On Sat, 15 Jun 2024 17:52:18 -0700, HenHanna wrote:

> Lispers can learn from Pythonicity and vice versa.

    diff2 = \
        lambda x : \
            (
                lambda : True,
                lambda : all(abs(a - b) == 1) for a, b in zip(x, x[1:]),
            )[len(x) > 1]()