internal.builtin
¶
Source code: internal/builtin.seq
- class internal.builtin.object¶
Magic methods:
- __str__()
- internal.builtin.id(x)¶
- internal.builtin.print(*args, sep: str = ' ', end: str = '\n', file=_stdout, flush: bool = False)¶
Print args to the text stream file.
- internal.builtin.min(*args)¶
- internal.builtin.max(*args)¶
- internal.builtin.len(x)¶
Return the length of x
- internal.builtin.iter(x)¶
Return an iterator for the given object
- internal.builtin.copy(x)¶
Return a copy of x
- internal.builtin.abs(x)¶
Return the absolute value of x
- internal.builtin.hash(x)¶
Returns hashed value only for immutable objects
- internal.builtin.ord(s: str)¶
Return an integer representing the Unicode code point of s
- internal.builtin.chr(i: int)¶
Return a string representing a character whose Unicode code point is an integer
- internal.builtin.next[T](g: Generator[T], default: Optional[T] = None)¶
Return the next item from g
- internal.builtin.any(x)¶
Returns True if any item in x is true, False otherwise
- internal.builtin.all(x)¶
Returns True when all elements in x are true, False otherwise
- internal.builtin.zip(*args)¶
Returns a zip object, which is an iterator of tuples that aggregates elements based on the iterables passed
- internal.builtin.filter[T](f: Callable[T, bool], x: Generator[T])¶
Returns all a from the iterable x that are filtered by f
- internal.builtin.map(f, *args)¶
Applies a function on all a in x and returns map object
- internal.builtin.enumerate(x, start: int = 0)¶
Creates a tuple containing a count (from start which defaults to 0) and the values obtained from iterating over x
- internal.builtin.echo(x)¶
Print and return argument
- internal.builtin.reversed(x)¶
Return an iterator that accesses x in the reverse order
- internal.builtin.round(x, n)¶
Return the x rounded off to the given n digits after the decimal point.
- internal.builtin.sum(xi)¶
Return the sum of the items added together from xi
- internal.builtin.repr(x)¶
Return the string representation of x
- extension int¶