String matching: Difference between revisions

Content added Content deleted
(Added Kotlin)
Line 838: Line 838:


=={{header|Elena}}==
=={{header|Elena}}==
<lang elena>#import system.
<lang elena>#import extensions.
#import extensions.


#symbol program =
program =
[
[
#var s := "abcd".
var s := "abcd".
console writeLine:s:" starts with ab: ":(s startingWith:"ab" literal).
console writeLine:s:" starts with ab: ":(s startingWith:"ab" literal).