Debian Codegraph @

doc/guide/src/MLtonMonoArray.adoc

raw
1 = MLtonMonoArray
2
3 [source,sml]
4 ----
5 signature MLTON_MONO_ARRAY =
6 sig
7 type t
8 type elem
9 val fromPoly: elem array -> t
10 val toPoly: t -> elem array
11 end
12 ----
13
14 * `type t`
15 +
16 type of monomorphic array
17
18 * `type elem`
19 +
20 type of array elements
21
22 * `fromPoly a`
23 +
24 type cast a polymorphic array to its monomorphic counterpart; the
25 argument and result arrays share the same identity
26
27 * `toPoly a`
28 +
29 type cast a monomorphic array to its polymorphic counterpart; the
30 argument and result arrays share the same identity