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
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 | |