Construct a loop that iterates through each value and outputs only values with a type that is scalar.