FunLand.Helper (fun_land v0.10.0)
FunLand Helper functions for some common Algorithmic Data Type implementations.
Link to this section Summary
Functions
The constant function: Returns the first argument, regardless of the second argument.
The constant function, reversed: Returns the second argument, regardless of the first argument.
The identity function: Returns what was passed in, unchanged.
Returns the proper module to dispatch FunLand functions to, given a
Link to this section Functions
Link to this function
const(x, y)
The constant function: Returns the first argument, regardless of the second argument.
Link to this function
const_reverse(x, y)
The constant function, reversed: Returns the second argument, regardless of the first argument.
Link to this function
id(x)
The identity function: Returns what was passed in, unchanged.
Link to this function
map_datatype_to_module(builtin_datatype)
Returns the proper module to dispatch FunLand functions to, given a:
- Builtin data type (dispatches to FunLand.Builtin.DataTypeModuleName).
- Struct (dispatches to the struct name module).
- module name (returns this module name).