Hanakai
  • Guides
  • Docs
  • Blog
  • Community
  • Conduct
  • Sponsor
  • Guides
  • Docs
  • Blog
  • Community
  • Conduct
  • Sponsor
v1.8 v1.7
    1. Introduction
    2. Getting Started
    3. Built-in Types
    4. Type Attributes
    5. Default Values
    6. Fallbacks
    7. Constraints
    8. Hash Schemas
    9. Array With Member
    10. Enum
    11. Map
    12. Combining Types
      1. Intersection
      2. Sum
    13. Custom Types
    14. Custom Type Builders
    15. Extensions
      1. Maybe
      2. Monads
  1. Dry
  2. dry-types

Combining Types

Types can be combined to create new types, using intersection types
to further restrict values, and sum types to allow more acceptable values.

  • Guides
    • Hanami
    • Dry
    • Rom
  • Docs
    • Hanami
    • Dry
    • Rom
  • Community
    • Code repository
    • Discussion forum
    • Chat room
  • Blog
  • Conduct
  • Sponsor