daft.functions.repeat#
repeat #
repeat(expr: Expression, n: int | Expression) -> Expression
Repeats each string n times.
Returns:
| Name | Type | Description |
|---|---|---|
Expression | Expression | a String expression which is |
Examples:
1 2 3 4 5 | |
╭────────────────────────────────╮
│ x │
│ --- │
│ String │
╞════════════════════════════════╡
│ daftdaftdaftdaftdaft │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ queryqueryqueryqueryquery │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ engineengineengineengineengin… │
╰────────────────────────────────╯
(Showing first 3 of 3 rows) Source code in daft/functions/str.py
701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 | |