Logo

Programming-Idioms

History of Idiom 96 > diff from v17 to v18

Edit summary for version 18 by :
New Haskell implementation by user [JH]

Version 17

2016-02-16, 19:36:15

Version 18

2016-02-18, 16:58:02

Idiom #96 Check string prefix

Set boolean b to true if string s starts with prefix prefix, false otherwise.

Idiom #96 Check string prefix

Set boolean b to true if string s starts with prefix prefix, false otherwise.

Code
b := pos(prefix, s) = 1;
Code
b := pos(prefix, s) = 1;
Comments bubble
Strings in Pascal start at index 1
Comments bubble
Strings in Pascal start at index 1