Skip to content

Commit 693768c

Browse files
committed
Polyfun examples
1 parent c998905 commit 693768c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

local/project/dummy/arrows.scala

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,21 @@ trait Arrows:
7373
val contextUncurried: (x: AnyRef^{a}, y: AnyRef^{b}) ?-> AnyRef^{x,y} ?-> Int ?->{x,y} Int
7474
val contextUncurried2: (x: AnyRef^{a}, y: AnyRef^{b}) ?-> AnyRef ?-> Int ?->{x,y} Int
7575
val contextUncurried3: (x: AnyRef^{a}, y: AnyRef^{b}) ?=> AnyRef
76-
val contextUncurried4: (x: AnyRef^{a}, y: AnyRef^{b}) ?->{a,b} AnyRef^ ?=> Int ?->{x,y} Int
76+
val contextUncurried4: (x: AnyRef^{a}, y: AnyRef^{b}) ?->{a,b} AnyRef^ ?=> Int ?->{x,y} Int
77+
78+
def polyPure[A](f: A -> Int): Int
79+
def polyPure2[A](f: A ->{} Int): Int
80+
def polyImpure[A](f: A => Int): Int
81+
def polyImpure2[A](f: A ->{a,b,c} Int): Int
82+
def polyImpure3[A](f: A ->{a,b,c} Int => Int): Int
83+
84+
def polyContextPure[A](f: A ?-> Int): Int
85+
def polyContextPure2[A](f: A ?->{} Int): Int
86+
def polyContextImpure[A](f: A ?=> Int): Int
87+
def polyContextImpure2[A](f: A ?->{a,b,c} Int): Int
88+
def polyContextImpure3[A](f: A ?->{a,b,c} Int => Int): Int
89+
90+
val polyPureV: [A] => A -> Int
91+
val polyPureV2: [A] => Int => A ->{a,b,c} Int
92+
val polyImpureV: [A] -> A => Int
93+
val polyImpureV2: [A] -> A => Int

0 commit comments

Comments
 (0)