Skip to content
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

Add transducers and polymorphism modules #59

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/100-polymorphism/10-intro-polymorphism/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test:
@ test.sh
6 changes: 6 additions & 0 deletions modules/100-polymorphism/10-intro-polymorphism/bb.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{:tasks
{:requires ([babashka.classpath :as cp])
:init (do
(cp/add-classpath ".")
(load-file "../../../src/test-helper.clj"))
check-solution (load-file "test.clj")}}
10 changes: 10 additions & 0 deletions modules/100-polymorphism/10-intro-polymorphism/description.ru.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

name: О полиморфизме
theory: |
Курс находится в разработке!

instructions: |
Курс находится в разработке!

tips: []
4 changes: 4 additions & 0 deletions modules/100-polymorphism/10-intro-polymorphism/index.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(ns index)
;BEGIN
(println "hello, world")
;END
4 changes: 4 additions & 0 deletions modules/100-polymorphism/10-intro-polymorphism/test.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(ns intro-polymorphism-test
(:require [test-helper :refer [assert-solution]]))

(assert-solution [[1]] [1] identity)
5 changes: 5 additions & 0 deletions modules/100-polymorphism/description.ru.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

name: Полиморфизм
description: |
Довольно часто возникают задачи, которые можно решить, имея полиморфное поведение, рассмотрим как можно получить такое поведение в Clojure.
2 changes: 2 additions & 0 deletions modules/110-transducers/10-intro-transducers/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test:
@ test.sh
6 changes: 6 additions & 0 deletions modules/110-transducers/10-intro-transducers/bb.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{:tasks
{:requires ([babashka.classpath :as cp])
:init (do
(cp/add-classpath ".")
(load-file "../../../src/test-helper.clj"))
check-solution (load-file "test.clj")}}
10 changes: 10 additions & 0 deletions modules/110-transducers/10-intro-transducers/description.ru.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

name: О трансдьюсерах
theory: |
Курс находится в разработке!

instructions: |
Курс находится в разработке!

tips: []
4 changes: 4 additions & 0 deletions modules/110-transducers/10-intro-transducers/index.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(ns index)
;BEGIN
(println "hello, world")
;END
4 changes: 4 additions & 0 deletions modules/110-transducers/10-intro-transducers/test.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(ns intro-transducers-test
(:require [test-helper :refer [assert-solution]]))

(assert-solution [[1]] [1] identity)
5 changes: 5 additions & 0 deletions modules/110-transducers/description.ru.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

name: Трансдьюсеры
description: |
Иногда бизнес-требования слишком сложны и противоречивы. Накладывать их на функциональный стиль становится слишком дорого. Для разрешения таких проблем в Clojure были созданы трансдьюсеры, которые и будут рассмотрены в этом модуле.