Poetry with Poems inLoveLike

Poetic in Nature

EFT is Free SHA2-512 SHA3-512

Lambda_exclusion_with_Dict_Arrays_in_Python_3.8

Author: Nathaniel Steven Henry Brown
Started: May 20, 2021
Last Edited: August 07, 2021
>>> a = [1, 2, 3, 4, 5]
>>> b = a
>>> c = [1, 4]
>>> list(filter(lambda d: d in c, b))
[1, 4]
>>> list(filter(lambda d: d not in c, b))
[2, 3, 5]
Characters: 151
Lines: 7
Words: 37

Views: 390

Changes Made

Revision #1
Title

1c1
< Lambda exclusion with Dict (Array's) in Python 3.8<free>
---
> Lambda exclusion with Dict (Array's) in Python 3.8<free><code><python>