Skip to content

Commit

Permalink
slice method is deprecated, using exSlice instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kurmanka committed Jul 23, 2012
1 parent 20646ae commit d3d3ada
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/IoGuide.html
Original file line number Diff line number Diff line change
Expand Up @@ -1869,14 +1869,14 @@ <h3>Sequence</h3>
Slicing:

<pre>
"Kirikuro" slice(0, 2)
"Kirikuro" exSlice(0, 2)
==> "Ki"

"Kirikuro" slice(-2) # NOT: slice(-2, 0)!
"Kirikuro" exSlice(-2) # NOT: exSlice(-2, 0)!
==> "ro"

Io> "Kirikuro" slice(0, -2)
# "Kiriku"
Io> "Kirikuro" exSlice(0, -2)
==> "Kiriku"
</pre>

Stripping whitespace:
Expand Down
4 changes: 2 additions & 2 deletions docs/IoTutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ <h2>Introduction<a name="Introduction"></a></h2>
Io> s findSeq("test")
==> 10

Io> s slice(10)
Io> s exSlice(10)
==> "test"

Io> s slice(2, 10)
Io> s exSlice(2, 10)
==> "is is a "

</PRE>
Expand Down

0 comments on commit d3d3ada

Please sign in to comment.