scala check if seq container true booleans code example Example: scala check if seq container true booleans product("inStock").forall(_ == true)