Pyli/Methods/Text

From Jonathan Gardner's Tech Wiki
< Pyli‎ | Methods
Jump to: navigation, search

Text

These are useful for Text.

  • (el seq i): Returns the ith element of the sequence.
  • (sub seq i [j]): (Negatives OK)
    • (sub seq i): Returns from i to the end
    • (sub seq i j): Returns from i to j, not including j
  • (length seq): Returns the length of the sequence
  • (empty? seq): Returns True if empty, False otherwise.