Skip to content
Discussion options

You must be logged in to vote

Can you constrain the helper itself with generics?

extension Updates {
  mutating func modify<S, B>(count: Int) where /* constraints */ {
    
  }
}

Since this doesn't appear to be a bug I'm going to convert to a discussion.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rcarver
Comment options

Answer selected by rcarver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #273 on February 23, 2026 18:44.