git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
More objects tests
0c961bePhil Freeman
examples/Objects.ps+8
@@ -1 +1,9 @@
1test = \x -> x.foo + x.bar
1test = \x -> x.foo + x.bar
2+
3+append = \o -> { foo: o.foo, bar: 1 }
4+
5+apTest = append({foo : "Foo", baz: "Baz"})
6+
7+f = (\a -> (a.b).c)({ b: { c: 1, d: "Hello" }, e: "World" })
8+
9+g = (\a -> (a.f)({ x: 1, y: "y" }))({ f: \o -> o.x + 1 })