Skip to content

Instantly share code, notes, and snippets.

View netogallo's full-sized avatar

Ernesto Rodriguez netogallo

  • Technical University of Munich
View GitHub Profile
@netogallo
netogallo / S1.fs
Created July 30, 2013 14:00
Type things
and FusionType<'a> = {index : int;value : 'a []}
and [<Sealed>] StreamFusion<'a> [<JavaScript>] (s : Stream<'a []>) =
[<JavaScript>]
let mutable lastGood =
match s.Latest with
| Success xs -> Array.map (fun x -> Success x) xs
| Failure msg -> Array.init 1 (fun _ -> Failure msg)