exercism / exercism/swift

[v3] Implement new Concept Exercise: bit-manipulation

Aperta
#423 0 commenti 0 reazioni 1 assegnatario Rivendicata da @haunshila Vedi su GitHub
Lingua principale
Swift
Stelle
122
Fork
165
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

This issue describes how to implement the bit manipulation 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:

- [The features of v3][docs-features-of-v3].
- [Rationale for v3][docs-rationale-for-v3].
- [What are concept exercises and how are they structured?][docs-concept-exercises]

Please also watch the following video:

- [The Anatomy of a Concept Exercise][anatomy-of-a-concept-exercise].

## Goal

This concept exercise should convey a basic understanding of how to perform bit-manipulation in Swift.

## Things to teach

- Bitwise AND
- Bitwise OR
- Bitwise NOT
- Bitwise XOR
- Bitwise Left and right shifts

## Things not to teach

- Operations that can be built out of bitwise operations

## Concepts

- `bit-manipulation`

## Prerequisites

- `basics`
- `numbers`

## Resources to refer to

### Hints

- [Swift Language Guide - Bitwise operators][bitwise-operators]

### After

- [Swift Language Guide - Bitwise operators][bitwise-operators]

## Representer

TBD

## Analyzer

TBD

## Implementing

See [the Swift track implementation guide][swift-implementing-concept-exercises] for guidance.

## Help

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

[swift-implementing-concept-exercises]: https://github.com/wneumann/v3/blob/master/languages/swift/reference/implementing-a-concept-exercise.md
[bitwise-operators]: https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html#ID29
[docs-concept-exercises]: ../../../docs/concept-exercises.md
[docs-rationale-for-v3]: ../../../docs/rationale-for-v3.md
[docs-features-of-v3]: ../../../docs/features-of-v3.md
[anatomy-of-a-concept-exercise]: https://www.youtube.com/watch?v=gkbBqd7hPrA

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.