Lists Mapping Lists Mapping Lists in Hamler are the same as in Erlang. Lists in Hamler: {-- List --} [] -- empty list [ 1 , 2 , 3 ] -- Integer list [ 1 ...
Functions Function Definition and Application Anonymous Functions Guards in Function Functions Function Definition and Application Hamler: add x y = x + y add 3 ...
Simple Types Simple Types Hamler is strongly typed, and has a powerful static type system. Let’s start with some simple examples. Boolean true :: Boolean false :: ...
Notes On Indentations Notes On Indentations Like all ML Language Family, Hamler is indentation sensitive. Any declaration in the same block should have the same level of indent...
Integers Mapping Integers Mapping Integers in Hamler are the same as Erlang, with unlimited size. Hamler defines Int as an alias for Integer . Binary, octal, and hex integer...
Erlang and Concurrency Erlang and Concurrency Erlang is famous for its concurrency. Concurrent programming can be used to improve performance, gain scalability and fault-tolera...
Variables Variables Variable names in both Hamler and Erlang are composed of letters, digits, and underscores. However, variables in Hamler begin with a lowercase letter, while...
Booleans Mapping Booleans Mapping The syntax of Booleans in Hamler is the same as Erlang. The difference is that Boolean is a primitive type in Hamler, while true and false ...