Created
September 16, 2010 15:42
-
-
Save robertpi/582644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A { | |
private List<string> myList = new List<string>(); | |
private List<string> GetCurrentItems(){ | |
return new List<string>(myList); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A { | |
private List<string> myList = new List<string>(); | |
private List<string> GetCurrentItems(){ | |
return myList; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let func() = | |
let x = 1 | |
let innerFunc() = | |
let k = 2 | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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