This commit is contained in:
parent
42fa039daf
commit
8d12c0bdf8
4 changed files with 17 additions and 3 deletions
|
|
@ -383,7 +383,7 @@ var StringPrototype = map[string]*BuiltinFunctionValue{
|
|||
}
|
||||
|
||||
if prev != len(str) {
|
||||
out = append(out, &StringValue{str[prev:len(str)]})
|
||||
out = append(out, &StringValue{str[prev:]})
|
||||
}
|
||||
|
||||
return &ListValue{out}, nil
|
||||
|
|
@ -661,7 +661,7 @@ func (v *TupleValue) Equals(other Value) bool {
|
|||
}
|
||||
|
||||
var TuplePrototype = map[string]*BuiltinFunctionValue{
|
||||
"at": &BuiltinFunctionValue{
|
||||
"at": {
|
||||
"at",
|
||||
&FunctionSignature{
|
||||
[]TypeSignature{&IntegerSignature{}},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue