katydid-0.4.0.2: A haskell implementation of Katydid

Safe HaskellSafe
LanguageHaskell2010

Data.Katydid.Relapse.Exprs.Elem

Description

This module contains the Relapse elem expression.

Synopsis

Documentation

mkElemExpr :: [AnyExpr] -> Either String AnyExpr Source #

mkElemExpr dynamically creates an elem expression, if the first argument is a list and the second an int index.

elemExpr :: Expr [a] -> Expr Int -> Expr a Source #

elemExpr creates an expression that returns an element from the list at the specified index. Trimming this function would cause it to become non generic. It is not necessary to trim each function, since it is just an optimization.