Тёмный

Pagination in Clojure is so easy 

Clojure Diary
Подписаться 496
Просмотров 334
50% 1

Опубликовано:

 

23 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@abhinavomprakash4884
@abhinavomprakash4884 13 дней назад
I would suggest using `(take per-page (drop (* (dec page) per-page) coll))`. The `dec` is because pages are 1 indexed but clojure seqs are 0 indexed. This is slightly more performant than partition-all since you don't have to realise all the partitions upto a certain number. In fact if you were using a vector. You could possibly make it more performant with subvec. 🤔
Далее
Learn Clojure - Projects with Leiningen
23:36
ŠKODA не перестает удивлять
00:48
Как не носить с собой вещи
00:31
▼ ЕДУ В ТИХОСРАНСК 💪
37:00
Просмотров 411 тыс.
Learn Clojure - Protocol
11:32
Просмотров 225
Refactoring handler in ring
12:31
Просмотров 54
Packaging Clojure app for Mac
20:44
Просмотров 145
Learn Clojure - Testing
6:21
Просмотров 106
Greatest of three numbers in Clojure
11:39
Просмотров 117
Optimizing Python code using Cython
38:31
pmc day 8
1:38:15
Просмотров 14
Learn Clojure - Macros
9:23
Просмотров 133
ŠKODA не перестает удивлять
00:48