Identity function in Scheme

扶醉桌前 提交于 2019-12-10 17:24:14

问题


Is the identity function pre-defined in Scheme?


回答1:


Yes, but it's called values. Actually, that's usually used for multiple values, so it's a generalized multiple-arity identity function.




回答2:


In DrRacket I know that identity works. For example, (identity 12) => 12



来源:https://stackoverflow.com/questions/4969927/identity-function-in-scheme

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!