2 people like it.

Concatenate two strings together

Concatenates two strings together: ML or OCaml style

1: 
2: 
let (^) l r = sprintf "%s%s" l r
"Happy" ^ " birthday!"
val l : string
val r : string
val sprintf : format:Printf.StringFormat<'T> -> 'T

Full name: Microsoft.FSharp.Core.ExtraTopLevelOperators.sprintf
Raw view Test code New version

More information

Link:http://fssnip.net/92
Posted:13 years ago
Author:Cameron Frederick
Tags: string , strings , concatenate