String matching: Difference between revisions

m (Added Sidef language)
Line 694:
<lang elena>#define system'routines.
#define extensions.
 
// --- Program ---
 
#symbol program =
[
(literalControl starting:"hello" &with:"hel") ?
[
consoleEx writeLine:"hello starts with hel".
].
(literalControl ending:"hello" &with:"llo") ?
[
consoleEx writeLine:"hello ends with llo".
].
 
(literalControl contain:"el" &in:"hello") ?
[
consoleEx writeLine:"hello contains el".
Anonymous user