Google News
logo
F# - Interview Questions
What is F#
* F# is a universal programming language for writing succinct, robust and performant code.
 
* F# allows you to write uncluttered, self-documenting code, where your focus remains on your problem domain, rather than the details of programming.
 
* It does this without compromising on speed and compatibility - it is open-source, cross-platform and interoperable.
open System // Gets access to functionality in System namespace.

// Defines a list of names
let names = [ "Peter"; "Julia"; "Xi" ]

// Defines a function that takes a name and produces a greeting.
let getGreeting name = $"Hello, {name}"

// Prints a greeting for each name!
names
|> List.map getGreeting
|> List.iter (fun greeting -> printfn $"{greeting}! Enjoy your F#")
Advertisement