Increment a numerical string
say my $s = "12345";
say ++$s;
# or Unicode. How about Sinhala?
say "෧෨෩෪෫ ", +"෧෨෩෪෫";
say "෧෨෩෪෫".succ, ' ', +"෧෨෩෪෫".succ;
Output:
12345
12346
෧෨෩෪෫ 12345
෧෨෩෪෬ 12346
PreviousIncreasing gaps between consecutive Niven numbersNextIndex finite lists of positive integers
Last updated
Was this helpful?