diff --git a/concepts/lists/.meta/config.json b/concepts/lists/.meta/config.json index bb8ee530..4e4843a4 100644 --- a/concepts/lists/.meta/config.json +++ b/concepts/lists/.meta/config.json @@ -1,4 +1,11 @@ { "blurb": "Lists are immutable, sequential collections representing function calls unless quoted.", - "authors": ["porkostomus", "bemself", "cstby"] + "authors": [ + "porkostomus", + "bemself", + "cstby" + ], + "contributors": [ + "tasxatzial" + ] } diff --git a/concepts/lists/about.md b/concepts/lists/about.md index b7687f47..b88e95e7 100644 --- a/concepts/lists/about.md +++ b/concepts/lists/about.md @@ -3,17 +3,16 @@ ## Key Learnings - Lists are collections. -- Lists can be created using `list` or by using a single quote. +- Lists can be created using [`list`][list] or by using a single quote. - Clojure will try to evaluate lists, treating the first item as a function. - Core functions: - - `cons` returns a list with the new item added to beginning. - - `first` returns the first item from a list. - - `rest` returns the list without the first item. - - `count` returns the number of items in the list. - - `conj` returns a list with items appended in it. + - [`first`][first] returns the first item in the list. + - [`rest`][rest] returns a list of all items of the list except the first. + - [`count`][count] returns the number of items in the list. + - [`conj`][conj] adds one or more items to the beginning of the list. -## Additional Resources - -- [list - clojure.core | ClojureDocs](https://clojuredocs.org/clojure.core/list) -- [Data Structures](https://clojure.org/reference/data_structures) -- [Lists in Clojurescript](https://cljs.github.io/api/syntax/list) +[list]: https://clojuredocs.org/clojure.core/list +[first]: https://clojuredocs.org/clojure.core/first +[rest]: https://clojuredocs.org/clojure.core/rest +[count]: https://clojuredocs.org/clojure.core/count +[conj]: https://clojuredocs.org/clojure.core/conj diff --git a/concepts/lists/links.json b/concepts/lists/links.json index 36bbabee..2333e7b2 100644 --- a/concepts/lists/links.json +++ b/concepts/lists/links.json @@ -1,14 +1,6 @@ [ - { - "url": "https://clojuredocs.org/clojure.core/list", - "description": "list - clojure.core | ClojureDocs" - }, { "url": "https://clojure.org/reference/data_structures", "description": "Data Structures" - }, - { - "url": "https://cljs.github.io/api/syntax/list", - "description": "Lists in Clojurescript" } ]