summaryrefslogtreecommitdiff
path: root/tnslc/utils/algo.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/utils/algo.tnsl')
-rw-r--r--tnslc/utils/algo.tnsl10
1 files changed, 10 insertions, 0 deletions
diff --git a/tnslc/utils/algo.tnsl b/tnslc/utils/algo.tnsl
new file mode 100644
index 0000000..c501e35
--- /dev/null
+++ b/tnslc/utils/algo.tnsl
@@ -0,0 +1,10 @@
+
+/; strcmp(~uint8 a, b) [bool]
+ /; loop (a` == b` && a` !== 0 && b` !== 0) [a++; b++] ;/
+
+ /; if (b` == 0 && a` == 0)
+ return true
+ ;/
+ return false
+;/
+