1
0
mirror of https://github.com/osmarks/random-stuff synced 2024-11-08 13:39:53 +00:00
random-stuff/code-guessing/anagram.py

16 lines
615 B
Python
Raw Normal View History

2021-03-21 19:36:03 +00:00
(
( __import__ ( "forbiddenfruit" ) . curse ( tuple, "then", lambda a, f: f ( *a ) ), )
. then ( lambda _: (
__import__ ( "collections" ) . Counter,
__import__ ( "operator" ) . eq,
__import__ ( "sys" ) . modules,
) )
. then ( lambda count, eq, mods: (
lambda a, b: ( eq (
count ( str.replace ( ( str.lower ( a ) ), " ", "" ) ),
count ( str.replace ( ( str.lower ( b ) ), " ", "" ) ),
) ), )
. then ( lambda entry: ( ( mods [ __name__ ] ), )
. then ( lambda mod: ( ( setattr ( mod, "entry", entry ) ), ) ) )
)
)