pointfree

Pointfree function combination in Python

Pointfree function combination in Python Question: I have some predicates, e.g.: is_divisible_by_13 = lambda i: i % 13 == 0 is_palindrome = lambda x: str(x) == str(x)[::-1] and want to logically combine them as in: filter(lambda x: is_divisible_by_13(x) and is_palindrome(x), range(1000,10000)) The question is now: Can such combination be written in a pointfree style, such …

Total answers: 6