fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 214: Pad string on the right
Idiom # 214: Pad string on the right
See
programming-idioms.org
:
Code
s + c * ((m - s.codepoint_length).max 0)
What are effects?
Running Example
ex214 is s := "融合слияниеذوب" c := "❗" m := 15 s2 := s + c * (max 0 m-s.codepoint_length) say s2
What are effects?
last changed: 2024-07-01
next: Idiom # 215: Pad string on the left