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?
Avatarrupesh asked 5 months 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
AvatarMatthias answered 5 months ago
Your Answer

17 + 10 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com