September Morn Update

This commit is contained in:
Ingy döt Net 2019-09-12 10:33:56 -07:00
parent 4e2d22a71d
commit aac6731f2c
6856 changed files with 141342 additions and 21127 deletions

View file

@ -1,16 +1,16 @@
import extensions.
import extensions;
program =
[
var s := "0123456789".
var n := 3.
var m := 2.
var c := $51.
var z := "345".
public program()
{
var s := "0123456789";
var n := 3;
var m := 2;
var c := $51;
var z := "345";
console writeLine(s Substring:m at:n).
console writeLine(s Substring(s length - n) at:n).
console writeLine(s Substring(s length - 1) at:0).
console writeLine(s Substring:m at(s indexOf:c at:0)).
console writeLine(s Substring:m at(s indexOf:z at:0)).
].
console.writeLine(s.Substring(n, m));
console.writeLine(s.Substring(n, s.Length - n));
console.writeLine(s.Substring(0, s.Length - 1));
console.writeLine(s.Substring(s.indexOf(0, c), m));
console.writeLine(s.Substring(s.indexOf(0, z), m))
}