summaryrefslogtreecommitdiff
path: root/src/util.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.ml')
-rw-r--r--src/util.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.ml b/src/util.ml
index d2d4eea7..75732376 100644
--- a/src/util.ml
+++ b/src/util.ml
@@ -343,3 +343,7 @@ 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)
+
+let string_of_option string_of = function
+ | None -> ""
+ | Some x -> string_of x