Skip to content

Instantly share code, notes, and snippets.

@yloiseau
Created March 15, 2017 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yloiseau/a32b2618ad8d409032b471a605ce7c2b to your computer and use it in GitHub Desktop.
Save yloiseau/a32b2618ad8d409032b471a605ce7c2b to your computer and use it in GitHub Desktop.
module TestObservable
function main = |args| {
let o1 = Observable(null)
let o2 = o1: map(|v| -> v + 1): onChange(|v| {println(v)})
o1: set(0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment