包含conj的接口? [英] Interface which contains conj?

查看:69
本文介绍了包含conj的接口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为练习,我正在开发类似于Vector的数据结构。我已经实现了IPersistentVector扩展的所有接口,但没有找到定义 conj的接口。那是哪个接口?
谢谢!

As an exercise, I am developing a data structure similar to Vector. I have implemented all interfaces which IPersistentVector extends, but I have not found the interface where 'conj' is defined. Which interface is that? Thanks!

推荐答案

clojure.lang.IPersistentCollection / cons 。它最初被命名为 cons ,即使它的Clojure函数现在被称为 conj ,它也被保留在界面中。

clojure.lang.IPersistentCollection/cons. It was named cons originally, and that's stuck around in the interface even though the Clojure function for it is now called conj.

这篇关于包含conj的接口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆