is_iterator


is_iterator(obj)
      

Return true if obj is an iterator, otherwise return false.

Examples:


function gen(x)
  letfn loop (n = x)
  { yield n
    loop(n + 1) }

let xs = gen(10)
is_iterator(xs)
// true
nth(23, xs)
// 33
      

Also see:

is_lpair
is_list


Core Module Index | Contents