Skip to content

Question: how to solve for_loops_two with only one line of change? #56

@wh5a

Description

@wh5a

Usually the koans can be solved by only changing the marked line. I cannot figure out how to conditionally append a space except after the last element of the array. In the for loop, how do we know we've reached the end, without keeping a counter, or refactoring the code? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions