hask3.Python.builtins – Python builtins as Hask functions

callable()

callable ** (H/ "a" >> bool)

cmp()

cmp ** (H/ "a" >> "a" >> int)

Note

In Python 3, cmp is not a builtin.

delattr()

delattr ** (H/ "a" >> str >> None)

divmod()

divmod ** (H/ "a" >> "b" >> ("c", "c"))

getattr()

getattr ** (H/ "a" >> str >> "b")

hasattr()

hasattr ** (H/ "a" >> str >> bool)

hash()

hash ** (H/ "a" >> int)

hex()

hex ** (H/ int >> str)

isinstance()

isinstance ** (H/ "a" >> "b" >> bool)

issubclass()

issubclass ** (H/ "a" >> "b" >> bool)

len()

len ** (H/ "a" >> int)

oct()

oct ** (H/ int >> str)

repr()

repr ** (H/ "a" >> str)

setattr()

setattr ** (H/ "a" >> str >> "b" >> None)

sorted()

sorted ** (H/ "a" >> list)

Note

Python’s sorted may take an optional key argument. This cannot be properly capture by Hask3.