From bd026a21d5b03c12bdb05c1c1eae51a97a021a6a Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Sun, 13 Sep 2020 16:54:10 +0200 Subject: [PATCH] added slicer.txt with slice function --- code/slicer.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 code/slicer.txt diff --git a/code/slicer.txt b/code/slicer.txt new file mode 100644 index 0000000..975c20b --- /dev/null +++ b/code/slicer.txt @@ -0,0 +1,40 @@ +>main +gto +:slicer +=step +=to +=from +=str +$from +=i +\ +=result +:loop +$result +$str +$i +idx +cat +=result +$i +$step +add +=i +$i +$str +len +>loop +glt +$result +ret +:main +\Avans Hogeschool +=text +$text +0 +$text +len +2 +>slicer +fun +end