I want to count the number of arrays in the nested arrays of an array
array = [[["-", 0, "I"], ["+", 0, "you"]], [["+", 3, "i"]], [["-", 4, "loved"], ["-", 5, "that"], ["+", 5, "it"], ["+", 6, "tasted"], ["+", 7, "like"]]]
This example would have 8 nested arrays inside the arrays in the array array. (not sure if I worded that right)
array.first.countshould do? @Desorder - could you explain how you would use RegularExpressions here?array.first.countandarray.first.sizegives 2.array.flatten(1).countwill do.