Mimics
Inactive cells
Active cells
Specs
Inactive cells (details)
kind = "Sequence Cons"
Active cells (details)
create(wrappedSequence, context, messages, +rest)

nil

method(wrappedSequence, context, messages, +rest, 
  res = mimic 
  res wrappedSequence = wrappedSequence 
  res context = context 
  res messages = messages 
  res restArguments = rest 
  res ary = list 
  res 
  )
next()

nil

method(
  while(wrappedSequence next?, 
    if(ary length ==(restArguments [](0)), 
      ary shift!) 
    ary push!(wrappedSequence next) 
    if(ary length ==(restArguments [](0)), 
      return(ary mimic))) 
  )
next?()

nil

method(
  while((ary length +(2) <(restArguments [](0))) &&(wrappedSequence next?), 
    ary push!(wrappedSequence next)) 
  ((ary length +(2)) >=(restArguments [](0))) &&(wrappedSequence next?) 
  )