Try to search your question here, if you can't find : Ask Any Question Now ?

What's the difference between the single quote 'a and a' in OCaml?

HomeCategory: stackoverflowWhat's the difference between the single quote 'a and a' in OCaml?
rupesh asked 2 weeks ago

The single quote 'a in OCaml represents a general type. What does a' represent? It looks like it’s not a grammar error, like in the following code:

type nat =
  | O
  | S of nat

let rec plus n m =
  match n with
  | O -> m
  | S n' -> S (plus n' m)
1 Answers
Best Answer
Matthias answered 2 weeks ago
Your Answer

0 + 4 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com