Skip to content

Add combinations pattern #21

@pditommaso

Description

@pditommaso
Channel.from([['A', 10], ['B', 8], ['C', 5], ['D', 4]])
  .toList().map{ [it, it].combinations().findAll{ a, b -> a[1] < b[1]} }
  .flatMap()
  .view()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions