Skip to content

Conversation

MitrickX
Copy link

Without creating new records

Copy link
Collaborator

@margintop15px margintop15px left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

мне понравилась ваша работа
хорошо разделен код на функции для работы с данными и функциями для представления данных
понравилось что вынесли общий код в более абстрактные функции и сделали специализированные функции использующие общий код
замечаний у меня особо нет
всё отлично

Comment on lines +232 to +233
(doseq [i (range 0 (count menu))]
(printf "%s. %s\n" (inc i) (get-in menu [i :name]))))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

есть еще одна функция dotimes
это по сути сокращенная версия версия - doseq [n (range)]
https://clojuredocs.org/clojure.core/dotimes


(defn goodbye []
(println "Goodbye")
(System/exit 0))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants