<span class="hljs-comment">/* This is a simple function */</span>
<span class="hljs-keyword">let</span> greet = (name) =&gt; <span class="hljs-string">&quot;Hello World&quot;</span>;

<span class="hljs-keyword">let</span> body = <span class="hljs-type">`Plain</span>(<span class="hljs-string">&quot;uploaded &quot;</span><span class="hljs-operator"> ++ </span>cacheServiceConfig.desc<span class="hljs-operator"> ++ </span><span class="hljs-string">&quot;configuration data into cache on S3&quot;</span>);

<span class="hljs-keyword">let</span> getCacheConfigByEnv =
    (
      environment: environment,
      cacheServiceConfig: <span class="hljs-type">Js</span>.<span class="hljs-type">Dict</span>.t(cachingServiceConfig)
    ) =&gt;
  <span class="hljs-keyword">switch</span> (cacheServiceConfig) {
  | <span class="hljs-type">Some</span>(config) =&gt; config
  | <span class="hljs-type">None</span> =&gt;
    raise(<span class="hljs-type">InvalidEnvironment</span>(<span class="hljs-string">&quot;Caching Service Coinfiguration is missing&quot;</span>))
  };

<span class="hljs-keyword">let</span> readCacheServiceConfigAndDecode = (configJson) =&gt;
  <span class="hljs-keyword">switch</span> (configJson<span class="hljs-operator"> |&gt; </span><span class="hljs-type">Js</span>.<span class="hljs-type">Json</span>.decodeObject) {
  | <span class="hljs-type">None</span> =&gt; raise(<span class="hljs-type">Json</span>.<span class="hljs-type">Decode</span>.<span class="hljs-type">DecodeError</span>(<span class="hljs-string">&quot;Invalid Cache Config&quot;</span>))
  | <span class="hljs-type">Some</span>(data) =&gt;
    data<span class="hljs-operator"> |&gt; </span><span class="hljs-type">Js</span>.<span class="hljs-type">Dict</span>.map((. json) =&gt; <span class="hljs-type">CachingServiceConfig</span>.decode(json))
  };

<span class="hljs-keyword">let</span> ofSyntax = s =&gt;
  <span class="hljs-keyword">switch</span> (s) {
  | <span class="hljs-type">OCaml</span> =&gt; <span class="hljs-string">&quot;OCaml&quot;</span>
  | <span class="hljs-type">Reason</span> =&gt; <span class="hljs-string">&quot;Reason&quot;</span>
  };
