Skip to content

Instantly share code, notes, and snippets.

@robertpi
Created September 16, 2010 15:42
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 robertpi/582644 to your computer and use it in GitHub Desktop.
Save robertpi/582644 to your computer and use it in GitHub Desktop.
class A {
private List<string> myList = new List<string>();
private List<string> GetCurrentItems(){
return new List<string>(myList);
}
}
class A {
private List<string> myList = new List<string>();
private List<string> GetCurrentItems(){
return myList;
}
}
let func() =
let x = 1
let innerFunc() =
let k = 2
...
let makeCounterWithIncDecRead() =
let counter = ref 0
let inc() = counter := !counter + 1
let dec() = counter := !counter – 1
let read() = !counter
inc, dec, read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment