update
This commit is contained in:
parent
1f1ad49427
commit
6f050a029e
2496 changed files with 37609 additions and 3031 deletions
|
|
@ -0,0 +1,6 @@
|
|||
o_text(delete("knights", 0));
|
||||
o_newline();
|
||||
o_text(delete("knights", -1));
|
||||
o_newline();
|
||||
o_text(delete(delete("knights", 0), -1));
|
||||
o_newline();
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
% Implemented by Arjun Sunel
|
||||
string:left("Hello", length("Hello")-1,$.). % To strip the word from the right by 1
|
||||
|
||||
string:right("Hello", length("Hello")-1,$.). % To strip the word from the left by 1
|
||||
|
||||
string:left(string:right("Hello", length("Hello")-1,$.), length("Hello")-2,$.). %To strip the word from both sides by 1.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
make "s "|My string|
|
||||
print butfirst :s
|
||||
print butlast :s
|
||||
print butfirst butlast :s
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
define println use $s
|
||||
$s print "\n" print
|
||||
|
||||
"0123456789" as $str
|
||||
|
||||
define offTheTop use $s
|
||||
$s 1 0x7FFFFFFF extract
|
||||
|
||||
define offTheTail use $s
|
||||
$s 0 -1 extract
|
||||
|
||||
|
||||
$str offTheTop println
|
||||
$str offTheTail println
|
||||
$str offTheTop offTheTail println
|
||||
Loading…
Add table
Add a link
Reference in a new issue