You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you really want / or need to program at a much higher level of abstraction cyclops-reactor provided psuedo HigherKinded encordings and typeclasses forFluxs and Monos.
350
-
This allows us to leverage truly generic Traverse and Sequence implementations (allowing us to invert the nesting of arbritrary monadic types, rather than hard coding the inversion of a List of Futures to a Future of a List-for example)
350
+
Typeclasses can be used directly (although this results in verbose and somewhat cumbersome code)
351
+
e.g. using the Pure and Functor typeclasses forFlux
The Active classrepresents a Higher Kinded encoding of a Reactor (or cyclops-react/ JDK/ Vavr / rx etc) type *and* it's associated type classes
369
+
370
+
The code above which creates a new Flux containing a single element "hello" and transforms it to a Flux of Integers (the length of each word), can be written much more succintly with Active
371
+
372
+
```java
373
+
374
+
Active<flux,Integer> active = Fluxs.allTypeClasses(Flux.empty());
0 commit comments