<<< Previous question <<< Question ID#0790.md >>> Next question >>>
Give the following function signature:
function a(): iterable {
//
}
What actual data types are acceptable for this function to return?
- A) An object implementing Traversable.
- B) A Generator;
- C) An array;
- D) An object that implements the new "__iterate()" magic method;
Answer
Answer: A, B, C