Skip to content

Instantly share code, notes, and snippets.

View AKST's full-sized avatar

Angus AKST

View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
model: null,
}).reopenClass({
positionalParams: ['model'],
});
enum Thunk<'a> {
Instant(Atom<'a>),
Defered(&'a fn() -> Atom<'a>)
}
enum Atom<'a> {
Error,
Ni32(i32),
Function(&'a fn(Thunk<'a>) -> Atom<'a>)