The first function

Submitted by:David Villa

Date added:11 July, 2011


To do a Hello world proved to be quite simple, so lets take it a bit further and write a function which prints the hello world text.

Tags: sml function

Code Snippet:

    1. - fun hello ():string = "Hello World";
2. val hello = fn : unit -> string
3. - hello();
4. val it = "Hello World" : string