summaryrefslogtreecommitdiff
path: root/ocaml/lib/application/d05p01.ml
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml/lib/application/d05p01.ml')
-rw-r--r--ocaml/lib/application/d05p01.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/ocaml/lib/application/d05p01.ml b/ocaml/lib/application/d05p01.ml
new file mode 100644
index 0000000..4bf79ab
--- /dev/null
+++ b/ocaml/lib/application/d05p01.ml
@@ -0,0 +1,3 @@
+let err_empty_input = "input is empty"
+
+let solve input () = if input = "" then Error err_empty_input else Ok 0