Skip to content

Instantly share code, notes, and snippets.

@mattpodwysocki
Forked from bennage/combining two strings
Created July 13, 2010 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpodwysocki/474419 to your computer and use it in GitHub Desktop.
Save mattpodwysocki/474419 to your computer and use it in GitHub Desktop.
// what's a better way?
let fullName (first,last) =
match (first, last) with
"",_ | null,_ -> first
| _,null | _,"" -> last
| _ -> sprintf "%s.%s" first last
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment