Content deleted Content added
→Compare (relational operator-based, Boolean result): Fix minor mistake Perl 6 |
|||
Line 86:
| <code>''string''.[''i'']</code>
|[[OCaml]], [[F Sharp (programming language)|F#]]
|0
|-
| <code>''string''.chars().nth(''i'')</code>
|[[Rust]]
|0
|-
Line 217 ⟶ 221:
" Example in Smalltalk "
'Hello, World' at: 2. "$e"
</syntaxhighlight>
<syntaxhighlight lang="rust">
//Example in Rust
"Hello, World".chars().nth(2); //'l'
</syntaxhighlight>
<!-- endsection -->
|