Skip to content

Instantly share code, notes, and snippets.

@julianpeeters
Created January 16, 2019 15:02
Show Gist options
  • Select an option

  • Save julianpeeters/ab4da293e1fd09ac9da92506168f8f65 to your computer and use it in GitHub Desktop.

Select an option

Save julianpeeters/ab4da293e1fd09ac9da92506168f8f65 to your computer and use it in GitHub Desktop.
category
arrow
object
initial object
A B C
A ----> B
----> C
Category of Set
-------------------
arrow = function
object = Set
Set() ---> Set(1)
---> Set(1,2)
Category of Scal
-------------------
arrow = function
object = type
Void --> 1
--> List(1)
falsity => anything
def vac1(n: Nothing): Int = 1
def vac2(n: Nothing): String = "1"
def vac3[A](n: Nothing): A = something
def something[A]: A = something
def otherUnit[A](a: A): Unit = ()
def otherInt[A](a: A): Int = 1
??? <-- 1
<-- List(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment