Skip to content

ch04: Possible error in output example of "Building Versatility Into Iterating a Playlist" #65

Closed
@vsemozhetbyt

Description

@vsemozhetbyt

See last code examples in this section.

If I get this right, we get a sequence from the shuffleSongs() just once and iterate this sequence every time in the same order. So we cannot have different order inside each loop like:

// <- ['a', 'b', 'b', 'a', 'a', 'b']

Only these varians are possible:

// <- ['a', 'b', 'a', 'b', 'a', 'b']
// <- ['b', 'a', 'b', 'a', 'b', 'a']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions