×

5424811297062398

11 Reputation

Follow
Activities(1) Posts(0) Series(0) Areas of Expertise Following Followers

5424811297062398 Commented on

A New Stream: Adding the Generator Feature to Java

This article introduces a new design pattern that is not specific to any programming language but is applicable to many modern programming languages.

This is so stunningly elegant AND practical! (But my head is steaming, because it is easy to get something wrong in higher-order functional programming...) I actually have a use case for an OctoSeq (8 parameters), which I would like to map to a HexaSeq (6 parameters) because I could then just copy-paste the formula from tested code in JavaScript without worrying about confusing an array index. But it seems that doesn't work with standard Java... After that it seems I need to cast the HexaSeq into an ArrayList of 6-tuples and do other mapping there, because the the OctoSeq involves CompletableFuture.
Areas of Expertise

Following (0)

See All

Followers (0)

See All
Latest Comments
No series yet.