|
substring
as follows
|
substring
with its length
argument and
an anonymous string, leaving the position to its default value 0. The
anonymous string parameter has been moved as the last argument, inverting
the convention taken in String.sub
, so as to satisfy the requirement
than an optional argument must always be followed by an anonymous argument
which is used to mark the end optional arguments and replace missing
arguments by their default values.new
construct.
This amounts to having a unique constructor of the same name as the name of
the class, with the same arity as that of the class.
|
|
|
|
|