Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      Currently a shuffle can be created from an array of ints.

      It would be useful to define at least the iota factory method that by default returns a shuffle containing all indexes in the interval [0, N). Further arguments declaring the initial index and increment direction allows for easy support for reverse and rotation.

      A shuffle factory method accepting a lambda expression would be more general, from which other common factory methods could be specified. With suitable specification to state the result should be used outside of loops this might be acceptable (in the absence of lambda cracking).

        Attachments

          Activity

            People

            • Assignee:
              psandoz Paul Sandoz (Inactive)
              Reporter:
              psandoz Paul Sandoz (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: