Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
printAll(args*) {
|
||||
for k,v in args
|
||||
t .= v "`n"
|
||||
MsgBox, %t%
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
printAll(4, 3, 5, 6, 4, 3)
|
||||
printAll(4, 3, 5)
|
||||
printAll("Rosetta", "Code", "Is", "Awesome!")
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
args := ["Rosetta", "Code", "Is", "Awesome!"]
|
||||
printAll(args*)
|
||||
13
Task/Variadic-function/AutoHotkey/variadic-function-4.ahk
Normal file
13
Task/Variadic-function/AutoHotkey/variadic-function-4.ahk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
string = Mary had a little lamb
|
||||
StringSplit, arg, string, %A_Space%
|
||||
|
||||
Function(arg1,arg2,arg3,arg4,arg5) ;Calls the function with 5 arguments.
|
||||
Function() ;Calls the function with no arguments.
|
||||
return
|
||||
|
||||
Function(arg1="",arg2="",arg3="",arg4="",arg5="") {
|
||||
Loop,5
|
||||
If arg%A_Index% !=
|
||||
out .= arg%A_Index% "`n"
|
||||
MsgBox,% out ? out:"No non-blank arguments were passed."
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue