dbrattli / OSlash

Functors, Applicatives, And Monads in Python
MIT License
714 stars 50 forks source link

(lambda x: x+3) % Just(2) #27

Closed PlumpHip closed 3 years ago

PlumpHip commented 3 years ago

(lambda x: x+3) % Just(2)

Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for %: 'function' and 'Just'

Thanks

PlumpHip commented 3 years ago

from oslash import List([lambda x: x2, lambda y: y+3]) * List([1, 2, 3])

Traceback (most recent call last): File "", line 1, in File "python3-3.8.3/lib/python3.8/typing.py", line 875, in new obj = super().new(cls, *args, **kwds) TypeError: object.new() takes exactly one argument (the type to instantiate)