August 27, 2024
P04 - Find the number of elements of a list.
Example:
scala
scala> length(List(1, 1, 2, 3, 5, 8))
res0: Int = 6
August 27, 2024
Example:
scala
scala> length(List(1, 1, 2, 3, 5, 8))
res0: Int = 6
Don't have an account? We will create one for you.
Enter the OTP send to
in seconds.