exercism / swift

Exercism exercises in Swift.
https://exercism.org/tracks/swift
MIT License
114 stars 158 forks source link

[v3] Implement new Concept Exercise: filter and compactMap #417

Open wneumann opened 4 years ago

wneumann commented 4 years ago

This issue describes how to implement the filter concept exercise for the Swift track.

Getting started

Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read the following documents:

Please also watch the following video:

Goal

This concept exercise should convey a basic understanding of how to filter in Swift.

Learning Objectives

Out of Scope

Concepts

Prerequisites

Resources to refer to

Hints

After

Representer

TBD

Analyzer

TBD

Implementing

See the Swift track implementation guide for guidance.

Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

wneumann commented 4 years ago

Considering splitting out compactMap from map and merging it into this and making map a prerequisite, as compactMap is essentially a lazy map composed with a filter for non-nil values.

wneumann commented 4 years ago

Adding compactMap to this exercise.