Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Repeat/Visual-Basic-.NET/repeat.vb
Normal file
17
Task/Repeat/Visual-Basic-.NET/repeat.vb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Module Module1
|
||||
|
||||
Sub Repeat(count As Integer, fn As Action(Of Integer))
|
||||
If IsNothing(fn) Then
|
||||
Throw New ArgumentNullException("fn")
|
||||
End If
|
||||
|
||||
For i = 1 To count
|
||||
fn.Invoke(i)
|
||||
Next
|
||||
End Sub
|
||||
|
||||
Sub Main()
|
||||
Repeat(3, Sub(x) Console.WriteLine("Example {0}", x))
|
||||
End Sub
|
||||
|
||||
End Module
|
||||
Loading…
Add table
Add a link
Reference in a new issue