Lambda expression which takes a tuple (a, b[], c) and return tuples flattening list b e.g. (a, b[0], c), (a, b[1], c)

Hi there I am trying to construct a lambda expression which takes in tuples of the form: (a, b[], c). Where b is a list of elements which needs to be flattened. for example the output of the expression should be: (a, b[0], c), (a, b[1], c), (a, b[2], c) … I’ve tried researching and… Read More Lambda expression which takes a tuple (a, b[], c) and return tuples flattening list b e.g. (a, b[0], c), (a, b[1], c)

Combine two streams and call method

I have a problem how to stream asynchornously and call a method, e.g. List<User> users = List.of(user1, user2, user3); List<Workplace> worklpaces = List.of(workplace1,workplace2,workplace3) It’s always the same users.size == workplaces.size we have a function mapping public List<UserWithWorkplace> combineUserWithWorkplaceAndType(List<User> users,List<Workplace> worklpaces, Type someRandomtype) { //here is the problem it wont it should be get //List<UserWithWorkplace>.size ==… Read More Combine two streams and call method