# Some small keypath extensions: identity and tuple components

**URL:** <https://forums.swift.org/t/some-small-keypath-extensions-identity-and-tuple-components/13729>\
**Category:** Pitches\
**Created:** [June 15, 2018, 9:55pm UTC](https://forums.swift.org/t/some-small-keypath-extensions-identity-and-tuple-components/13729 "2018-06-15T21:55:54Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Dante-Broggi](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/dante-broggi/32/7955_2.png) [@Dante-Broggi](https://forums.swift.org/u/Dante-Broggi)\
**Post date:** [June 18, 2018, 8:12pm UTC](https://forums.swift.org/t/some-small-keypath-extensions-identity-and-tuple-components/13729/8 "2018-06-18T20:12:17Z")

</div>

In a current discussion about single element tuples there was mention of this thread, and a suggestion to use `\.0` as the identity keypath element, [here](https://forums.swift.org/t/roadmap-for-and-state-of-single-element-tuple-types/13711/17).  
This would effectively be coercing `T` to an unlabeled single element tuple `(T)` getting it's first element, and coercing back to `T`, except unlabeled single element tuples don't exist.  
And even labeled single element tuples only exist in some parts of the compiler.

---

_[View the full topic](https://forums.swift.org/t/some-small-keypath-extensions-identity-and-tuple-components/13729)._
