Safe Haskell | None |
---|
- 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
toTuple :: [SomeObject] -> IO TupleSource
iterableToTuple :: Object iter => iter -> IO TupleSource
Convert any object implementing the iterator protocol to a Tuple
.
fromTuple :: Tuple -> IO [SomeObject]Source
getItem :: Tuple -> Integer -> IO SomeObjectSource
Return the object at a given index from a tuple, or throws IndexError
if the index is out of bounds.