Tail? - Function Summary
Summary:
Returns TRUE if a series is at its tail.
Usage:
tail? series
Arguments:
series - The series argument. (must be: series port bitset)
Description:
This function is the best way to detect the end of a
series while moving through it.
print tail? "string"
false |
print tail? tail "string"
true |
str: "Ok"
print tail? tail str
true |
print tail? next next str
true |
items: [oven sink stove blender]
while [not tail? items] [
print first items
items: next items
]
oven
sink
stove
blender |
blk: [1 2]
print tail? tail blk
true |
print tail? next next blk
true |
Related:
empty? - Returns TRUE if a series is at its tail. head - Returns the series at its head. head? - Returns TRUE if a series is at its head. tail - Returns the series at the position after the last value.
|