fork download
  1. static string removeChar(String source, Integer index) {
  2. return source.left(index)+source.right(source.length()-index-1);
  3. }
Success #stdin #stdout #stderr 0.01s 10004KB
stdin
Standard input is empty
stdout
Object: nil error: did not understand #string
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject(Object)>>doesNotUnderstand: #string (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
Object: String error: did not understand #source
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
String class(Object)>>doesNotUnderstand: #source (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:2: parse error, expected '}'