Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 508 Bytes

0790.md

File metadata and controls

23 lines (18 loc) · 508 Bytes

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