is_lpair


is_lpair(obj)
      

Return true if obj is lazy sequence, otherwise return false.

Examples:


function gen(x) x:~gen(x+1)

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

Also see:

is_iterator
is_list


Core Module Index | Contents