update inbox list
This commit is contained in:
20
vendor/scrivo/highlight.php/test/markup/reasonml/pattern-matching.txt
vendored
Normal file
20
vendor/scrivo/highlight.php/test/markup/reasonml/pattern-matching.txt
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
let message =
|
||||
switch (person1) {
|
||||
| School.Teacher => "Hello teacher!"
|
||||
| School.Director => "Hello director!"
|
||||
};
|
||||
|
||||
let message =
|
||||
School.(
|
||||
switch (person1) {
|
||||
| Teacher => "Hello teacher!"
|
||||
| Director => "Hello director!"
|
||||
}
|
||||
);
|
||||
|
||||
let readCacheServiceConfigAndDecode = (configJson) =>
|
||||
switch (configJson |> Js.Json.decodeObject) {
|
||||
| None => raise(Json.Decode.DecodeError("Invalid Cache Config"))
|
||||
| Some(data) =>
|
||||
data |> Js.Dict.map((. json) => CachingServiceConfig.decode(json))
|
||||
};
|
||||
Reference in New Issue
Block a user