Mimics
Inactive cells
Active cells
Specs
Inactive cells (details)
kind = "Sequence Interleave"
Active cells (details)
create(left, right)

nil

method(left, right, 
  newObj = mimic 
  newObj left = left 
  newObj right = if(right mimics?(Sequence), right, right seq) 
  newObj left? = true 
  newObj 
  )
next()

nil

method(
  if(left?, 
    @ left? = false 
    left next, 
    @ left? = true 
    right next) 
  )
next?()

nil

method(
  leftNext? = left next? 
  rightNext? = right next? 
  (leftNext? &&(rightNext?)) ||((!(left?) &&(rightNext?))) 
  )