Substring/Top and tail: Difference between revisions

No edit summary
Line 958:
===First method===
<lang PowerShell>
$string = "headtop and tail"
$string
$string.Substring(1)
Line 966:
===Second method===
<lang PowerShell>
$string = "headtop and tail"
$string
$string[1..($string.Length - 1)] -join ""
Line 974:
<b>Output:</b>
<pre>
headtop and tail
eadop and tail
headtop and tai
eadop and tai
</pre>
 
 
=={{header|Prolog}}==
678

edits