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
module EnvDemo | |
open System | |
open System.IO | |
[<Struct>] | |
type Nothing = | |
private | |
| Nothing |
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
type Monoid<'a> = { | |
unit : 'a | |
op : 'a -> 'a -> 'a | |
} | |
let endo<'a> = | |
{ unit = id | |
op = fun (f:'a -> 'a) (g:'a -> 'a) -> f << g } | |
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
public class ReducedController : Controller | |
{ | |
private readonly IContainProducts productRepository; | |
private readonly ISearchForProducts productsIndex; | |
private readonly IContainCustomers customerRepository; | |
private readonly IShipProducts productShipper; | |
private readonly ICoordinateSales salesCatalog; | |
public ReducedController( | |
IContainProducts productRepository, |