You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Implement split( string, sep ) function; splits string to array on sep (e.g. split( "1,2,3", ",") returns array [1,2,3]). Sep is a Lua pattern, so special chars must be escaped in the Lua pattern way (e.g. to use "+" as a separator, must specify "%+").
6
+
* Implement join( array, sep ) function; joins array elements with sep into string result (e.g. join( list( 1,2,3 ), ":") result is "1:2:3" ).
7
+
8
+
## 0.9.7 ##
9
+
10
+
* Support deferred evaluation for if() and iterate(), and logical operators (&&/and, ||/or)
, ['tonumber'] = { nargs=1, impl=function( argv ) ifbase.type(argv[1]) =="boolean" thenifargv[1] thenreturn1elsereturn0endendreturntonumber(argv[1], argv[2] or10) orevalerror('Argument could not be converted to number') end }
0 commit comments