Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add index()
  • Loading branch information
sorear committed May 27, 2011
1 parent fbf986f commit 6c42d59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/CORE.setting
Expand Up @@ -367,6 +367,7 @@ sub infix:<=>(\$a, \$b) { Q:CgOp { (prog [assign {$a} {$b}] {$a}) } }
sub chars($str) { chars($str) }
sub substr($str, $start, $len = chars($str) - $start) { substr($str, $start, $len) }
sub index($haystack,$needle) { $haystack.index($needle) }
sub item(Mu $x) { $x }
Expand Down

0 comments on commit 6c42d59

Please sign in to comment.