bug fixed & add systime, finished vecindex

This commit is contained in:
ValKmjolnir
2022-04-04 19:08:48 +08:00
parent b92930cb71
commit 60a74a13c8
4 changed files with 30 additions and 7 deletions
+4 -2
View File
@@ -211,7 +211,7 @@ var isnum=func(x){
var isscalar=func(s){
var t=typeof(s);
return t=="num" or t=="str";
return (t=="num" or t=="str")?1:0;
}
var isstr=func(s){
@@ -223,7 +223,9 @@ var isvec=func(v){
}
var vecindex=func(vec,val){
# unfinished
forindex(var i;vec)
if(val==vec[i])
return i;
return nil;
}