sifflet-2.3.0: Simple, visual, functional language for learning about recursion.

Safe HaskellSafe
LanguageHaskell2010

Language.Sifflet.Examples

Synopsis

Documentation

foo :: Function Source

foo a b = 2 * a + b

eFoo :: Expr -> Expr -> Expr Source

An expression representing a call to foo

eMax :: Expr -> Expr -> Expr Source

An expression representing a call to max

eFact :: Expr -> Expr Source

An expression representing a call to fact

getExampleFunction :: String -> Function Source

This function will be in error if the function name is not found in exampleEnv.