Quantcast
Channel: Active questions tagged ocaml - Stack Overflow
Viewing all articles
Browse latest Browse all 527

Could anyone explain this OCAML syntax to me

$
0
0

I am trying to append a string to an existing string.I came across this thread here which explains it.Just for reference I am pasting the content here from that page

let (^$) c s = s ^ Char.escaped c (* append *)let ($^) c s = Char.escaped c ^ s (* prepend *)

Now I wanted to know what does (^$) mean in

  let (^$) c s = s ^ Char.escaped c (* append *)

This page here states that

operator ^    is for string concatenation

what is (^$) ?


Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>