This file contains hidden or 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
| namespace FsharpImaging | |
| open System | |
| open System.Drawing | |
| open System.Drawing.Imaging | |
| open System.Runtime.InteropServices | |
| module ArrayFunctions = | |
| // Generic because it makes testing easier, yay math | |
| let IsSubMatrix (smallArray:'a[][]) (largeArray:'a[][]) (startCoordinate:(int * int)) = |
This file contains hidden or 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 frst = fst | |
| let scnd = snd | |
| let thrd (a, b, c) = c | |
| let frth (a, b, c, d) = d | |
| let ffth (a, b, c, d, e) = e |
This file contains hidden or 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 abstract class SearchParameter | |
| { | |
| public abstract State.ValidState ValidState { get; set; } | |
| public abstract string ClinicIds { get; set; } | |
| } | |
| public class State | |
| { | |
| public class ValidState |
This file contains hidden or 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
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.SessionState; | |
| namespace SitefinityWebApp.Utility | |
| { | |
| public partial class ReferralAuthorizationForm : CustomControl.LoggedInUser |
This file contains hidden or 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
| // This is proof-of-concept code for using the F# from C#, so I'm putting | |
| // the relevant snippets together in this one file | |
| // F# code | |
| namespace IntroDUs | |
| module IntroDUs = | |
| // This is a method of packing primitives into discriminated unions | |
| // and using an extension property on the DU to provide direct access |