-
Notifications
You must be signed in to change notification settings - Fork 8
Homework4 #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Homework4 #24
Conversation
Get updates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
мне понравилась ваша работа
хорошо разделен код на функции для работы с данными и функциями для представления данных
понравилось что вынесли общий код в более абстрактные функции и сделали специализированные функции использующие общий код
замечаний у меня особо нет
всё отлично
(doseq [i (range 0 (count menu))] | ||
(printf "%s. %s\n" (inc i) (get-in menu [i :name])))) |
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Without creating new records