Skip to content
#

sorting

Here are 1,793 public repositories matching this topic...

ivan-pi
ivan-pi commented Apr 23, 2021

Description

A function to pad a string with zeros or another symbol to a given width could be helpful in many cases, especially together with the to_string() function for integer to string conversion.

Currently available methods to achieve this are using concatenation

width = 32
str = "hello"
padded_str = repeat('0',width-len(str)')//str

and perhaps also internal file I/O

good first issue idea easy topic: strings
moritzfl
moritzfl commented Mar 3, 2022

I set up two Docker containers for moving files - one for my wife and one for me. To each, I pass a folder path that represents my wife's name or my name.

It works flawlessly except for the fact that I have an "m" in my name and can not use "m" in the folder name as it would be replaced by the month (moritz would be changed to Maroritz, Augoritz etc.). It would be nice to have escape sequences

Improve this page

Add a description, image, and links to the sorting topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the sorting topic, visit your repo's landing page and select "manage topics."

Learn more