Search
Star
1.4k
Feedback
Setup for Free
M
Modular
•
2y ago
•
6 replies
tkeitt
Parameterized function definitions in traits
Is this possible
?
trait X: fn x[Y: AnyType](self, y: Y) -> Y: pass
trait X: fn x[Y: AnyType](self, y: Y) -> Y: pass
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,311
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
trait X:
fn x[Y: AnyType](self, y: Y) -> Y:
pass
trait X:
fn x[Y: AnyType](self, y: Y) -> Y:
pass
Similar Threads
Parameterized traits
M
Modular / questions
2y ago
Traits
M
Modular / questions
3y ago
Type independent traits
M
Modular / questions
2y ago
Traits from structs
M
Modular / questions
2y ago