Substring/Top and tail: Difference between revisions
Content added Content deleted
(→{{header|Python}}: (added other two example strings)) |
|||
Line 508: | Line 508: | ||
2013-09-04 17:08:09.455 a.out[2257:507] ημοτικ</pre> |
2013-09-04 17:08:09.455 a.out[2257:507] ημοτικ</pre> |
||
=={{header|Elena}}== |
=={{header|Elena}}== |
||
ELENA |
ELENA 4.x : |
||
<lang elena>import extensions |
<lang elena>import extensions; |
||
public program |
public program() |
||
{ |
|||
[ |
|||
var testString := "test" |
var testString := "test"; |
||
console |
console.printLine(testString.Substring(1)); |
||
console |
console.printLine(testString.Substring(0, testString.Length - 1)); |
||
console |
console.printLine(testString.Substring(1, testString.Length - 2)) |
||
}</lang> |
|||
{{out}} |
{{out}} |
||
<pre> |
<pre> |