We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15eeda8 commit 2ecf87dCopy full SHA for 2ecf87d
lib/Str.pod
@@ -139,7 +139,7 @@ Examples:
139
say index "Camelia is a butterfly", "Camel"; # 0
140
say index "Camelia is a butterfly", "Onion"; # Int()
141
142
- say index("Camelia is a butterfly", "Onion") ?? 'OK' !! 'NOT'; # NOT
+ say index("Camelia is a butterfly", "Onion").defined ?? 'OK' !! 'NOT'; # NOT
143
144
=head2 rindex
145
@@ -218,8 +218,7 @@ Examples:
218
lines("a\nb").perl; # ("a", "b").list
219
lines("a\nb").elems; # 2
220
"a\nb".lines.elems; # 2
221
-
222
- "a\n".lines.elems; # 1
+ "a\n".lines.elems; # 1
223
224
=head2 words
225
0 commit comments