summaryrefslogtreecommitdiff
path: root/src/util.ml
diff options
context:
space:
mode:
authorKathy Gray2015-04-14 14:15:55 +0100
committerKathy Gray2015-04-14 14:15:55 +0100
commit5285a569618e701740003ee51bbda2229bb45ed3 (patch)
tree842d6d1aa35b2fb7fb8f729890ab92f9b1cc80b1 /src/util.ml
parenta08687cb73dd2a5be381f6ad7427f5e288a13877 (diff)
Get power.sail compiling to Lem again
Diffstat (limited to 'src/util.ml')
-rw-r--r--src/util.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.ml b/src/util.ml
index 28b56f22..a8d57b34 100644
--- a/src/util.ml
+++ b/src/util.ml
@@ -257,3 +257,9 @@ let same_content_files file1 file2 : bool =
with Stream.Failure -> stream_is_empty s1 && stream_is_empty s2
end
+(*String formatting *)
+let rec string_of_list sep string_of = function
+ | [] -> ""
+ | [x] -> string_of x
+ | x::ls -> (string_of x) ^ sep ^ (string_of_list sep string_of ls)
+