Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1 @@
$s = "asdf"

View file

@ -0,0 +1 @@
[string]::Join('', $s[$s.Length..0])

View file

@ -0,0 +1 @@
-join ($s[$s.Length..0])

View file

@ -0,0 +1 @@
[array]::Reverse($s)

View file

@ -0,0 +1,3 @@
$s -replace
('(.)' * $s.Length),
[string]::Join('', ($s.Length..1 | ForEach-Object { "`$$_" }))

View file

@ -0,0 +1,3 @@
$s -replace
('(.)' * $s.Length),
-join ($s.Length..1 | ForEach-Object { "`$$_" } )

View file

@ -0,0 +1 @@
[Regex]::Matches($s,'.','RightToLeft').Value -join ''

View file

@ -0,0 +1,3 @@
$a = 'abc 🐧 def'
$enum = $a.EnumerateRunes() | % { "$_" }
-join $enum[$enum.length..0] # fed 🐧 cba

View file

@ -0,0 +1,6 @@
$a = "aeiou`u{0308}yz"
$enum = [System.Globalization.StringInfo]::GetTextElementEnumerator($a)
$arr = @()
while($enum.MoveNext()) { $arr += $enum.GetTextElement() }
[array]::reverse($arr)
$arr -join '' # zyüoiea