Ocsigen

Js_of_ocaml

Home

Doc

Blog

Eliom

Js_of_ocaml

Server

Lwt

Tyxml

Start

  • Home
  • Doc
  • Eliom
  • Js_of_ocaml
  • Server
  • Lwt
  • Tyxml
  • Toolkit
  • Start
  • Ocsipersist
  • ReactiveData
  • i18n
  • Wodoc
  • Other projects
  • Research papers
  • Who does Ocsigen?
  • Contributing
  • Blog
  • Installation
  • Source code

On this page

Getting Started

  • Overview
  • Installation
  • Quick Start

Programming Guide

  • JavaScript interop
  • PPX syntax extension
  • JSON derivation
  • Export OCaml code to JavaScript
  • Error handling
  • API

Lwt Support

  • Lwt support
  • API

Compiler

  • Command line options
  • Compilation modes
  • JavaScript primitives
  • Tailcall optimization
  • Effect handlers
  • Runtime representation
  • Targeting older browsers

Wasm_of_ocaml

  • Overview
  • Writing Wasm primitives

How-to Guides

  • Build a toplevel or use Dynlink
  • Debug a program
  • Performance
  • Contribute

Try it

  • OCaml toplevel
  • Examples and projects

On this page

Getting Started

  • Overview
  • Installation
  • Quick Start

Programming Guide

  • JavaScript interop
  • PPX syntax extension
  • JSON derivation
  • Export OCaml code to JavaScript
  • Error handling
  • API

Lwt Support

  • Lwt support
  • API

Compiler

  • Command line options
  • Compilation modes
  • JavaScript primitives
  • Tailcall optimization
  • Effect handlers
  • Runtime representation
  • Targeting older browsers

Wasm_of_ocaml

  • Overview
  • Writing Wasm primitives

How-to Guides

  • Build a toplevel or use Dynlink
  • Debug a program
  • Performance
  • Contribute

Try it

  • OCaml toplevel
  • Examples and projects

Module Js_of_ocaml.Jstable

A minimal table implementation specialized for Js.js_string keys. This is faster than regular OCaml hashtables.

This implementation does not emulate the backtracking behavior of Stdlib.Hashtbl.

type 'a t
val create : unit -> 'a t
val add : 'a t -> Js.js_string Js.t -> 'a -> unit
val remove : 'a t -> Js.js_string Js.t -> unit
val find : 'a t -> Js.js_string Js.t -> 'a Js.optdef
val keys : 'a t -> Js.js_string Js.t list