是否有一个技术术语来描述接受一个参数并返回相同类型的对象的函数?
我正在考虑一个 T 类型参数的函数,它返回一个 T 类型的参数。我似乎隐约记得这种函数有一个名称,也许是homo-something。有这样的术语吗?
I'm considering functions of one argument of type T that return an argument of type T. I seem to vaguely recall that there is a name for that sort of function, maybe homo-something. Is there such a term?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过一小时的维基爬行,似乎合适的术语是“endofunction”。
http://en.wikipedia.org/wiki/Endomorphism#Endofunctions_in_mathematics
After an hour-long wiki-crawl, it appears that an appropriate term would be "endofunction".
http://en.wikipedia.org/wiki/Endomorphism#Endofunctions_in_mathematics