a
Примитивная апишка курсора - это кортеж строк
Size: a a a
a
A
a
a
key-value, а path-value. ;; key-value
{ name: «John»,
children: [
{ name: «anne», age: 12 },
{ name: «bob», age: 18 },
{ name: «chris», age: 24 }
]
}
;; path-value
name : john
children.1.name : anne
children.1.age : 12
children.2.name : bob
children.2.age : 18
children.3.name : chris
children.3.age : 24
A
A
OR
IG
IG
VK
(defn- dir-ls-by-ext
"Returns the list of files with a certain extension relative to the path"
[path ext]
{:pre [(.isDirectory (io/file path))]}
(let [cleaned-ext (string/replace-first ext #"^\." "")
lower-ext-pattern (str "." (string/lower-case cleaned-ext))
by-ext #(string/ends-with? (string/lower-case 😵 lower-ext-pattern)]
(->> path io/file .list (filter by-ext))))
VK
IG
VK
VK
IG
IG
А(
N
LE
VL