Skip to content

Instantly share code, notes, and snippets.

open System
type Settings = {
Capacities : array<float>
MaxRates : array<float>
ValveState : array<int>
Hash: int
} with
static member TrivialButPossiblyOkHash _ _ valueStates =
// This or some other way of combining the values eg. xor etc without copying my be good
// enought. You can test it on your data. With random values for the value states this is
@jbeeko
jbeeko / mini-CL.fsx
Last active June 16, 2020 04:47
A mini command-line program using F# 5.0 scripting
#! /usr/bin/env dotnet fsi --exec --langversion:preview
#r "nuget: Argu"
#r "nuget: FParsec"
// #I needed because of https://github.com/dotnet/fsharp/issues/9217
// Should be fixed for final release
#I "/Users/joergbeekmann/.nuget/packages/fparsec/1.1.1/lib/netstandard2.0"
open Argu
open FParsec
@jbeeko
jbeeko / Compiler-Supported-DataEntry.md
Last active December 5, 2016 21:08
Simple model for a contract

##Sample data file

---
module : ContractModel
---

let billsAddress: 
    Address street: 44 East 5th Ave
    city: Vancouver region: BC country: Canada
    postal: V6R-2T5