Skip to content

Instantly share code, notes, and snippets.

@evaporei
Created September 13, 2019 19:52
Show Gist options
  • Select an option

  • Save evaporei/971b5ae80fe538fc96ebbfe3e20d28ae to your computer and use it in GitHub Desktop.

Select an option

Save evaporei/971b5ae80fe538fc96ebbfe3e20d28ae to your computer and use it in GitHub Desktop.
Category Theory - Functor Container
class Container<T> {
private value: T
constructor(value: T) {
this.value = value
}
}
console.log('simple container:', new Container(5)) // Container { value: 5 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment