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
function bufferBytes(buffer) { | |
return [].map.call(new Uint8Array(buffer), function(x) {return x}) | |
} | |
function nanBytes(nan) { | |
var a = new Float64Array(1); | |
a[0] = nan; | |
return bufferBytes(a.buffer); | |
} |
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
#r @"bin\debug\FsControl.Core.dll" // from https://github.com/gmpl/FsControl | |
open System | |
open FsControl.Core.Abstractions | |
// generic semigroup operator | |
let inline mappend x y = Inline.instance (Monoid.Mappend, x) y | |
// generic functor operators | |
let inline fmap f x = Inline.instance (Functor.Fmap, x) f |