mirror of
https://github.com/ParkerTenBroeck/coroutines.git
synced 2026-06-07 05:08:51 -04:00
made generators have better class names
This commit is contained in:
parent
84fdaeb430
commit
10d07e2c80
4 changed files with 15 additions and 1 deletions
|
|
@ -66,6 +66,17 @@ public class Examples {
|
|||
// }
|
||||
|
||||
public static Gen<Double, Void> test(double[] nyas){
|
||||
|
||||
var test = 1+switch(nyas[0]){
|
||||
case 1.0 -> {
|
||||
Gen.yield(11);
|
||||
yield 2;
|
||||
}
|
||||
default -> {
|
||||
Gen.yield(12);
|
||||
yield 4;
|
||||
}
|
||||
};
|
||||
for(var d : nyas){
|
||||
Gen.yield(d);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue