I have the below array with me -
var arrayInt: Array[Int] = Array(400, 200, 20, 30, 50,1000)
Also the below condition. I need to fetch the first 2 occurrences from the array where it satisfies the condition arrayInt < int_max.
var int_max = 100
Expected Output
Array( 20, 30)
Arrayorvar