class TakeSequence
class TakeSequence
lib/take_sequence.tya:2
TakeSequence provides the take_sequence standard library API.
Source
# TakeSequence provides the take_sequence standard library API.
class TakeSequence implements Sequence
# TakeSequence.n stores instance state.
# @type Nil
n: nil
# TakeSequence.source stores instance state.
# @type Nil
source: nil
# TakeSequence.initialize provides the take_sequence standard library operation.
# @param source String source value.
# @param n Int n value.
# @return Self the initialized object.
initialize: source, n ->
self.source = source
self.n = n
Instance Variables
n
TakeSequence.n
lib/take_sequence.tya:5
TakeSequence.n stores instance state.
Source
# TakeSequence.n stores instance state.
# @type Nil
n: nil
source
TakeSequence.source
lib/take_sequence.tya:9
TakeSequence.source stores instance state.
Source
# TakeSequence.source stores instance state.
# @type Nil
source: nil
Methods
initialize
TakeSequence.initialize(source, n)
lib/take_sequence.tya:15
TakeSequence.initialize provides the take_sequence standard library operation.
Source
# TakeSequence.initialize provides the take_sequence standard library operation.
# @param source String source value.
# @param n Int n value.
# @return Self the initialized object.
initialize: source, n ->
self.source = source
self.n = n