# Suggested small addition to Generics chapter

**URL:** <https://forums.kodeco.com/t/suggested-small-addition-to-generics-chapter/36691>\
**Category:** Swift Apprentice\
**Created:** [November 19, 2017, 12:12pm UTC](https://forums.kodeco.com/t/suggested-small-addition-to-generics-chapter/36691 "2017-11-19T12:12:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisclark](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/chrisclark/32/102075_2.png) [@chrisclark](https://forums.kodeco.com/u/chrisclark)\
**Post date:** [November 19, 2017, 12:12pm UTC](https://forums.kodeco.com/t/suggested-small-addition-to-generics-chapter/36691/1 "2017-11-19T12:12:55Z")

</div>

The “&” syntax for generic type parameters is quite useful, and it took me a little rooting around to find out the correct syntax, since the “where” keyword was used before Swift 3:

static func incrementHelper\<T: Equatable & IncAndDecrementable\> {  
…

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [November 20, 2017, 3:54pm UTC](https://forums.kodeco.com/t/suggested-small-addition-to-generics-chapter/36691/2 "2017-11-20T15:54:36Z")

</div>

@chrisclark Thanks very much for your suggestion! You actually taught me something as well 🙂

I will definitely forward your comment over to the “powers that be” 🙂

All the best!

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [May 5, 2018, 4:13am UTC](https://forums.kodeco.com/t/suggested-small-addition-to-generics-chapter/36691/3 "2018-05-05T04:13:03Z")

</div>

Closed on May 5, 2018, 4:13am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
