Use this HTML cheat sheet to quickly create HTML tables, forms, fonts, color, image maps, hyperlinks and more. Div (headerulli.2a)+footerp. (divdl (dt+dd).3)+footerp.
NOTE: this manual is a work in progress. Please let us know if you thinksomething is missing by filing anissue, or join our Discord server.
Here is a comparison between common Erlang and Elixir syntaxes and the OCamland Reason syntaxes that are supported by Caramel.
Types
P:last-of-type last of some type. P:lang (en) p with en language attribute.:not (span) element that's not a span. P:first-child first child of its parent. P:last-child last child of its parent. P:nth-child (2) second child of its parent. P:nth-child (3n+1) nth-child (an + b) formula. HTML Cheat Sheet Author: Mark Branom Subject: HTML Created Date: 5533Z.
Variants and Unions
Html Syntax Cheat Sheet Cheat
Erlang:
Elixir
OCaml
Records
Erlang:
![Sheet Sheet](/uploads/1/1/8/8/118892134/502537693.jpg)
Elixir
OCaml
Expressions and Values
C++ Syntax Cheat Sheet
Atoms
Erlang | Elixir | OCaml | Reason | Description |
---|---|---|---|---|
ok | :ok | `ok | `ok | Atoms in Caramel are treated as polymorphic variants. |
'ok' | :'ok' | --- | --- | Quoted atoms are unsupported in Caramel. |
Erlang | Elixir | OCaml | Reason |
---|---|---|---|
% comment | # comment | (* comment *) | // comment |
Variables
Erlang | Elixir | OCaml | Reason |
---|---|---|---|
A = 1 | a = 1 | let a = 1 | let a = 1 |
A2 = A + 1 | a = 1 | let a' = a + 1 | let a' = a + 1 |
Binary Strings, and Charlists
Erlang | Elixir | OCaml | Reason |
---|---|---|---|
<<'binary'>> | 'binary' | 'binary' | 'binary' |
'string' | 'binary' | ['b'; 'i'; 'n'; 'a'; 'r'; 'y'] | ['b', 'i', 'n', 'a', 'r', 'y'] |
Function Calls
Erlang | Elixir | OCaml | Reason |
---|---|---|---|
Lambda() | lambda.() | lambda () | lambda() |
local() | local() | local () | local() |
mod:fn() | Mod.fn() | Mod.fn () | Mod.fn() |
A:F() | apply(A, F, []) | --- | --- |
Dynamically dispatched calles are not supported in Caramel, because we can'tknow the type of the arguments they will have, or the type of the value theywould return.
If expressions
Erlang: Spark action vs transformation.
Elixir
OCaml
Rust Syntax Cheat Sheet
Copay for er visit. Reason
Match / Case / Switch expression
Erlang:
C++ Syntax Cheat Sheet Pdf
Elixir
OCaml
Html Syntax Cheat Sheet
Reason