# Range with member

**URL:** <https://discourse.dry-rb.org/t/range-with-member/1512>\
**Category:** Ideas\
**Created:** [September 7, 2022, 2:28am UTC](https://discourse.dry-rb.org/t/range-with-member/1512 "2022-09-07T02:28:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![budu](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/budu/32/791_2.png) [@budu](https://discourse.dry-rb.org/u/budu)\
**Post date:** [September 7, 2022, 2:28am UTC](https://discourse.dry-rb.org/t/range-with-member/1512/1 "2022-09-07T02:28:03Z")

</div>

Hi, I’d like to use dry-validation with date ranges and I’d like to have a range type with typed member. I’ve looked into it and started working on a PR for dry-types to add this feature. Would this be a good idea?

---

<div class="post-metadata">

**Author:** ![isikyus](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/isikyus/32/464_2.png) [@isikyus](https://discourse.dry-rb.org/u/isikyus)\
**Post date:** [April 7, 2026, 5:11am UTC](https://discourse.dry-rb.org/t/range-with-member/1512/2 "2026-04-07T05:11:33Z")

</div>

Is your PR still around?

I was wanting to do the same thing with Sets, and I found [Extending `Array.of` behaviour to `Set`, `Range` etc - #2 by alassek](https://discourse.dry-rb.org/t/extending-array-of-behaviour-to-set-range-etc/1896/2), which says it would be possible but difficult, due to needing to update AST support etc.
