filmov
tv
Lisp for Beginners (Part 2) - Lists, Hash Maps, and Data Structures

Показать описание
I meant to discuss inheritance in more detail, but instead only got to interface implementation. Coming soon!
In this tutorial I explain how to work with data structures in Clojure. In particular, I cover Lists, which use Cons, and are immutable linked lists. I cover Vectors, which are clojure's version of Java Arrays, and I talk about records, which you define with defrecord and are clojure's answer to Java objects.
I also talk about Clojure's java interop, specifically how to create java objects from clojure, and how to implement Java interfaces from Clojure. And I also talk about defrecord vs deftype, and how they relate to different java methods and objects.