- Install Mono
brew install mono
- Install Visual Studio Code
- Install the Ionide-fsharp extension in Visual Studio Code
brew install mono
Errata page for my book F# Applied
| const statusMessagesReducer = (state = [], action) => { | |
| if (action.type === "ADD_STATUS") { | |
| return state.concat(action.statusMessage); | |
| } | |
| return state; | |
| }; | |
| const notificationsReducer = (state = [], action) => { | |
| if (action.type === "ADD_NOTIFICATION") { | |
| return state.concat(action.notification); |
| '.source.fsharp': | |
| 'F# NUnit Test': | |
| 'prefix': 'test' | |
| 'body': """ | |
| [<Test>] | |
| let ``$1`` () = | |
| $2 | |
| """ |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| List<Student> students = new List<Student>(); | |
| // Populate Students List here | |
| Student[] studentsSortedByName = students.ToArray(); |
| hasFever (Celsius 10.5) | |
| hasFever (Fahrenheit 22.5) |
| using System.ComponentModel.DataAnnotations; | |
| namespace UsingAjaxForms.Models | |
| { | |
| public class PersonalDetail | |
| { | |
| [Required] | |
| public string Name { get; set; } | |
| [Required] | |
| public string Email { get; set; } |
| namespace DelegatesAndEvents | |
| { | |
| class EvilSubscriber | |
| { | |
| WeatherStation weatherStation; | |
| public void EvilMessage(int temperature) | |
| { | |
| Console.WriteLine("The temperature is " + (temperature * 100)); | |
| } |
| public string GreetMe() | |
| { | |
| System.Threading.Thread.Sleep(2000); | |
| return "Hello ASP.NET MVC3 Ajax !!"; | |
| } |
| public class HomeController : Controller | |
| { | |
| public ActionResult Index() | |
| { | |
| return View(); | |
| } | |
| } |