Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Tuple
- tupleType :: Type
- toTuple :: [SomeObject] -> IO Tuple
- iterableToTuple :: Object iter => iter -> IO Tuple
- fromTuple :: Tuple -> IO [SomeObject]
- length :: Tuple -> IO Integer
- getItem :: Tuple -> Integer -> IO SomeObject
- getSlice :: Tuple -> Integer -> Integer -> IO Tuple
- setItem :: Object o => Tuple -> Integer -> o -> IO ()
Documentation
iterableToTuple :: Object iter => iter -> IO Tuple Source #
Convert any object implementing the iterator protocol to a Tuple
.
getItem :: Tuple -> Integer -> IO SomeObject Source #
Return the object at a given index from a tuple, or throws IndexError
if the index is out of bounds.
getSlice :: Tuple -> Integer -> Integer -> IO Tuple Source #
Take a slice of a tuple from low to high, and return it as a new tuple.