Skip to content
Snippets Groups Projects
Commit 4f023f2b authored by charguer's avatar charguer Committed by Thomas Wood
Browse files

std_map_added

parent 8e31edec
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ ASSEMBLY_JS_FILES := \
LibList.unlog.js \
LibOption.unlog.js \
LibProd.unlog.js \
StdMap.unlog.js \
Heap.unlog.js \
Shared.unlog.js \
Compare.js \
......
......@@ -120,6 +120,7 @@ let map_cstr_fields ?loc bind (cstr : constructor_description) elements =
with Map_fields_elements_mismatch_number_args ->
error ?loc ("Insufficient fieldnames for arguments to " ^ cstr.cstr_name)
(****************************************************************)
(* PPF HELPERS *)
......
......@@ -90,6 +90,10 @@ var string_eq = function(x, y) {
return x === y;
};
var string_compare = function(x, y) {
return x.localeCompare(y);
};
var strappend = function(x, y) {
if (typeof(x) != "string" || typeof(y) != "string")
throw "strappend invalid arguments";
......
......@@ -125,6 +125,7 @@ val ( || ) : bool -> bool -> bool (* beware of strict vs lazy semantics: todo d
(* todo : factorize and clean up *)
val string_eq : string -> string -> bool (* === *)
val string_compare : string -> string -> float (* actually returns an int *)
(*
val string_concat : string -> string -> string (* + *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment