fix some file extensions
This commit is contained in:
parent
68f8f3e56b
commit
f3a896c724
789 changed files with 91 additions and 62 deletions
26
Task/Function-composition/VBScript/function-composition-2.vb
Normal file
26
Task/Function-composition/VBScript/function-composition-2.vb
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
dim c
|
||||
set c = new closure
|
||||
|
||||
c.compose "ucase", "lcase"
|
||||
wscript.echo c.formula
|
||||
wscript.echo c("dog")
|
||||
|
||||
c.compose "log", "exp"
|
||||
wscript.echo c.formula
|
||||
wscript.echo c(12.3)
|
||||
|
||||
function inc( n )
|
||||
inc = n + 1
|
||||
end function
|
||||
|
||||
c.compose "inc", "inc"
|
||||
wscript.echo c.formula
|
||||
wscript.echo c(12.3)
|
||||
|
||||
function twice( n )
|
||||
twice = n * 2
|
||||
end function
|
||||
|
||||
c.compose "twice", "inc"
|
||||
wscript.echo c.formula
|
||||
wscript.echo c(12.3)
|
||||
Loading…
Add table
Add a link
Reference in a new issue