Skip to content

module internal.builtin

Source: stdlib/internal/builtin.codon


object

Magic methods

__init__(self)

__repr__(self)


id(x)


print(*args, sep: str = " ", end: str = "\n", file = _C.seq_stdout(), flush: bool = False)


input(prompt: str = "")


min(*args, key = None, default = None)


max(*args, key = None, default = None)


len(x)


iter(x)


abs(x)


hash(x)


ord(s: str)


divmod(a, b)


chr(i: int)


next(g: Generator[T], default: Optional[T] = None, T: type)


any(x: Generator[T], T: type)


all(x: Generator[T], T: type)


zip(*args)


filter(f: CallableTrait[T, bool], x: Generator[T], T: type)


map(f, *args)


enumerate(x, start: int = 0)


echo(x)


reversed(x)


round(x, n = 0)


sum(x, start = 0)


repr(x)


bin(n)


oct(n)


hex(n)


pow(base: float, exp: float)


pow(base: int, exp: int, mod: Optional[int] = None) @overload Function is overloaded


int @extend Class is extended to add given methods


float @extend Class is extended to add given methods


complex @extend Class is extended to add given methods


float32 @extend Class is extended to add given methods


float16 @extend Class is extended to add given methods


bfloat16 @extend Class is extended to add given methods


complex64 @extend Class is extended to add given methods