Logo

Programming-Idioms

History of Idiom 46 > diff from v26 to v27

Edit summary for version 27 by :
New Ada implementation by user [Smaehtin]

Version 26

2016-02-16, 16:06:36

Version 27

2016-02-16, 16:57:16

Idiom #46 Extract beginning of string (prefix)

Create string t consisting of the 5 first characters of string s.

Idiom #46 Extract beginning of string (prefix)

Create string t consisting of the 5 first characters of string s.

Code
T : String := S (1 .. 5);