Search found 2 matches
- Monday 21st February 2022 6:58pm
- Forum: Beginners
- Topic: Declare and initialize array of arrays
- Replies: 2
- Views: 1868
Declare and initialize array of arrays
Public Sub Main() Dim c As New Float[][2] c[0] = [1.23, 2.34] Print "c[0][0]", c[0][0] Print "c[0][1]", c[0][1] c[1] = [3.45, 4.56] c[2] = [5.67, 6.78] c[3] = [7.89, 8.90] End If you run this subroutine it runs until it tries to assign to c[2]. Is this expected behaviour? I expe...
- Saturday 12th February 2022 5:58pm
- Forum: Beginners
- Topic: Lambda, anonymous functions, assign function to variable, etc.
- Replies: 4
- Views: 2323
Lambda, anonymous functions, assign function to variable, etc.
Is it possible to assign a function to a variable or pass a function to another function?
Or is creating a separate class for each function the only way to do it like old Java?
Or is creating a separate class for each function the only way to do it like old Java?