{"id":285865,"date":"2017-05-03T20:30:58","date_gmt":"2017-05-03T16:30:58","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=285865"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=285865","title":{"rendered":"\u0422\u0438\u043f\u0438\u0437\u0438\u0440\u0443\u044f \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e"},"content":{"rendered":"<p>\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c &quot;\u0425\u0430\u0431\u0440\u0430\u0445\u0430\u0431\u0440\u0430&quot; \u043f\u0435\u0440\u0435\u0432\u043e\u0434 <a href=\"https:\/\/aphyr.com\/posts\/342-typing-the-technical-interview\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> Kyle Kingsbury, a.k.a &quot;Aphyr&quot;.<br \/>  \u0420\u0430\u043d\u0435\u0435: <a href=\"https:\/\/habrahabr.ru\/post\/326726\/\">\u0417\u0430\u043a\u043b\u0438\u043d\u0430\u044f \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e<\/a><\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0440\u0435\u0436\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0430, \u0437\u0430\u0434\u043e\u043b\u0433\u043e \u0434\u043e \u0432\u043e\u0441\u0445\u043e\u0434\u0430 \u0426\u0435\u0440\u043a\u0432\u0438, \u0432\u0441\u0435 \u0437\u0430\u043a\u043b\u044f\u0442\u044c\u044f \u043f\u0440\u043e\u0438\u0437\u043d\u043e\u0441\u0438\u043b\u0438\u0441\u044c \u043f\u043e \u0447\u0438\u0441\u0442\u043e\u043c\u0443 \u0441\u043b\u0443\u0447\u0430\u044e, \u0432\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0431\u044b\u043b\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u044b, \u0430 \u0441\u043c\u0435\u0440\u0442\u044c \u0431\u044b\u043b\u0430 \u043e\u0431\u044b\u0434\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e. \u041c\u043d\u043e\u0433\u0438\u0435 \u0432\u0435\u0434\u044c\u043c\u044b \u043f\u043e\u043a\u0430\u043b\u0435\u0447\u0438\u043b\u0438\u0441\u044c \u0438\u0437-\u0437\u0430 \u0441\u0432\u043e\u0435\u0439 \u043c\u0430\u0433\u0438\u0438, \u0438\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0438 \u0438\u0437\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u0446\u0435\u043d\u0442\u0440\u0435 \u043a\u0440\u0443\u0433\u0430 \u0438\u0441\u043a\u0440\u0438\u0432\u043b\u0435\u043d\u043d\u044b\u0445, \u0437\u0430\u0441\u0442\u0435\u043a\u043b\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0438 \u0433\u043e\u0440\u044f\u0449\u0438\u0445 \u043a\u0430\u043c\u043d\u0435\u0439, \u043d\u0435 \u0433\u0430\u0441\u043d\u0443\u0449\u0438\u0445 \u0434\u0430\u0436\u0435 \u043f\u043e\u0434 \u0432\u043e\u0434\u043e\u0439; \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0441\u0447\u0435\u0437\u0430\u043b\u0438, \u0438\u043b\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0438 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0433\u043e\u0440\u043d\u044b\u043c \u043f\u0435\u0440\u0435\u0432\u0430\u043b\u0430\u043c, \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043a\u0430\u0441\u0430\u044f\u0441\u044c \u043d\u043e\u0433\u0430\u043c\u0438 \u0437\u0435\u043c\u043b\u0438, \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0441\u043e\u0433\u0440\u0435\u0432\u0430\u044f \u0432\u043e\u0437\u0434\u0443\u0445 \u0441\u0432\u043e\u0438\u043c \u0434\u044b\u0445\u0430\u043d\u0438\u0435\u043c.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u0415\u0449\u0435 \u0440\u0435\u0431\u0435\u043d\u043a\u043e\u043c \u0442\u044b \u0443\u0441\u043b\u044b\u0448\u0430\u043b\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u043e \u0413\u0443\u043b\u044c\u0432\u0435\u0439\u0433-\u0437\u0430\u0442\u0435\u043c-\u0425\u044c\u0451\u0440, \u0432\u043e\u0437\u0440\u043e\u0434\u0438\u0432\u0448\u0435\u0439\u0441\u044f \u0442\u0440\u0438\u0436\u0434\u044b \u0438\u0437 \u0441\u0443\u0434\u043d\u043e\u0433\u043e \u043e\u0433\u043d\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u043f\u043e \u043c\u0438\u0440\u0443, \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u044f <em>seidr<\/em> \u2014 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u0435 \u0438 \u0441\u043f\u043b\u0435\u0442\u0435\u043d\u0438\u0435 \u0437\u0430\u043d\u043e\u0432\u043e \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e. \u0415\u0435 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u044f (\u0430 \u0438\u0445 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e) \u0441\u0442\u0430\u043b\u0438 \u0437\u043d\u0430\u043c\u0435\u043d\u0438\u0442\u044b\u043c\u0438 \u2014 \u0438\u0445 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u043b\u0438 \u0434\u0430\u0436\u0435 \u0445\u043e\u0434\u044f\u0449\u0438\u0435-\u0437\u0430-\u043a\u0440\u0430\u0435\u043c-\u043c\u0438\u0440\u0430 \u2014 \u043d\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e \u0435\u0435 \u0432\u044b\u0436\u0438\u0432\u0430\u043d\u0438\u0435. \u0412 \u044d\u043a\u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0442\u0440\u0430\u043d\u0441\u0435 <em>seidr<\/em> \u043e\u043d\u0430 \u043f\u0440\u043e\u0432\u0438\u0434\u0435\u043b\u0430 \u0441\u0432\u043e\u0435 \u0431\u0443\u0434\u0443\u0449\u0435\u0435, \u0438 \u043f\u043e\u0431\u0435\u0434\u0438\u043b\u0430 \u0441\u043c\u0435\u0440\u0442\u044c. \u0415\u0435 \u0437\u0430\u043a\u043b\u044f\u0442\u044c\u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043b\u043e\u043c\u0430\u043b\u0438\u0441\u044c, \u0438 \u043e\u043d\u0430 \u0441\u0442\u0430\u043b\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u0434\u043b\u044f \u0438\u0437\u0433\u043d\u0430\u043d\u043d\u044b\u0445 \u0436\u0435\u043d\u0449\u0438\u043d, \u043f\u0440\u0435\u0434\u043a\u043e\u0432 \u0442\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430. \u0413\u043e\u0432\u043e\u0440\u044f\u0442, \u0447\u0442\u043e \u0441\u0430\u043c \u041e\u0434\u0438\u043d \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0431\u0435\u0441\u0441\u043c\u0435\u0440\u0442\u0438\u044e \u043e\u0442 \u043d\u0435\u0435.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e \u0441\u0435\u0439 \u0434\u0435\u043d\u044c \u0432\u0441\u0435 \u0432\u0435\u0434\u044c\u043c\u044b \u0432 \u0434\u043e\u043b\u0433\u0443 \u043f\u0435\u0440\u0435\u0434 \u0425\u044c\u0451\u0440. \u041b\u0438\u0448\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u0438\u0435 \u043d\u044b\u0440\u044f\u044e\u0442 \u0432 \u0434\u0440\u0435\u0432\u043d\u044e\u044e, \u043d\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043c\u0430\u0433\u0438\u044e \u0432 \u043d\u0430\u0448\u0438 \u0434\u043d\u0438. \u0421\u0430\u043c\u0438 \u044f\u0437\u044b\u043a\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0437\u0430\u043a\u043b\u044f\u0442\u044c\u044f, \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441\u0430\u043c\u0438\u043c <em>seidr<\/em> \u0432 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435, \u043f\u0440\u043e\u0432\u043e\u0434\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u0443\u044e \u044d\u043d\u0435\u0440\u0433\u0438\u044e \u043f\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c \u043f\u0443\u0442\u044f\u043c \u2014 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0438\u043b\u0438 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0435 \u0432\u0437\u0440\u044b\u0432\u044b. \u041d\u043e \u043e\u043d\u0438 \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0438\u0437 \u0440\u0430\u0437\u043d\u043e\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u0438 \u0441\u0436\u0438\u0433\u0430\u044e\u0449\u0438\u0445 \u0431\u0440\u043e\u0432\u0438, \u0430 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0449\u0438\u0445 \u043d\u043e\u0432\u044b\u0435 \u0444\u044c\u043e\u0440\u0434\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043e\u0447\u0435\u0440\u0442\u0430\u043d\u0438\u0439.<\/p>\n<p>  <\/p>\n<p>&quot;\u0412\u0441\u0451 \u0445\u043e\u0440\u043e\u0448\u043e?&quot;<\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0431\u0435\u0441\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u2014 \u041a\u0440\u0438\u0441, \u0441\u0443\u0434\u044f \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u043d\u0430 \u0431\u0435\u0439\u0434\u0436\u0435 \u2014 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u044e\u043d, \u0447\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u044b\u0447\u0430\u044e \u0414\u043e\u043b\u0438\u043d\u044b. \u041e\u043d \u043d\u043e\u0441\u0438\u0442 \u0442\u043e\u043b\u0441\u0442\u043e\u0432\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f, \u0441\u0443\u0434\u044f \u043f\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044e \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0445 \u043c\u0430\u0440\u043e\u043a, \u0441\u0442\u043e\u0438\u0442 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0441\u043e\u0442\u043d\u0438 \u0442\u0440\u0438 \u0434\u043e\u043b\u043b\u0430\u0440\u043e\u0432. \u041e\u043d \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e \u0436\u0438\u0432\u043e\u0442\u043d\u043e\u0435, \u0447\u0442\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0435\u0431\u044f \u0437\u0430\u0434\u0443\u043c\u0430\u0442\u044c\u0441\u044f. \u041e\u0431\u044b\u0447\u043d\u043e \u0442\u0430\u043a\u0438\u0435 \u0432\u0435\u0449\u0438 \u0434\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0431\u0435 \u043b\u0435\u0433\u043a\u043e.<\/p>\n<p>  <\/p>\n<p>&quot;\u0418\u043c\u0435\u0435\u0448\u044c \u0432 \u0432\u0438\u0434\u0443 \u0432\u043e\u043e\u0431\u0449\u0435? \u041d\u0435 \u0434\u0443\u043c\u0430\u044e&quot;, \u2014 \u0442\u044b \u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0448\u044c \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446-\u0437\u0430\u043b, \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u0438\u0449\u0430 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f. \u0421\u0442\u0435\u043d\u044b \u043f\u0430\u0445\u043d\u0443\u0442 \u0443\u0445\u043e\u0434\u043e\u043c \u043e\u0442 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 Slack.<\/p>\n<p>  <\/p>\n<p>&quot;\u041d\u0443, \u044d\u043c, \u0445\u043e\u0440\u043e\u0448\u043e. \u0414\u0430, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0442\u044b \u043f\u0440\u0430\u0432\u0430&quot;. \u0435\u0433\u043e \u0433\u043e\u043b\u043e\u0441 \u0437\u0432\u0443\u0447\u0438\u0442 \u0440\u043e\u0431\u043a\u043e. &quot;\u041d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u0435. \u041f\u0440\u043e\u0441\u0442\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0441\u043a\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u043a\u0443, \u0447\u0442\u043e\u0431 \u044f \u043c\u043e\u0433 \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u0430\u043a \u0442\u044b \u0440\u0435\u0448\u0430\u0435\u0448\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b&quot;.<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a-\u0442\u043e \u0440\u0430\u0437 \u0442\u044b \u0440\u0435\u0448\u0438\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043d\u043e\u0436\u0430 \u0438\u0437 \u043e\u0441\u043a\u043e\u043b\u043a\u0430 \u043e\u0431\u0441\u0438\u0434\u0438\u0430\u043d\u0430. \u0422\u044b \u0440\u0430\u0437\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u0448\u044c \u043e \u0442\u043e\u043c, \u0438\u043c\u0435\u0435\u0442 \u043b\u0438 \u041a\u0440\u0438\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0438\u043b, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u0435 \u0442\u043e\u0431\u043e\u0439.<\/p>\n<p>  <\/p>\n<p>&quot;\u0422\u0430\u0430\u043a\u2026 \u044d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u043a\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f N-\u0444\u0435\u0440\u0437\u0435\u0439, \u0438 \u043e\u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u044f. \u0418\u043c\u0435\u044f \u0448\u0430\u0445\u043c\u0430\u0442\u043d\u0443\u044e \u0434\u043e\u0441\u043a\u0443 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c NxN, \u0442\u0435\u0431\u0435 \u043d\u0430\u0434\u043e \u043d\u0430\u0439\u0442\u0438 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c N \u043a\u043e\u0440\u043e\u043b\u0435\u0432 \u043d\u0430 \u044d\u0442\u043e\u0439 \u0434\u043e\u0441\u043a\u0435&quot;.<\/p>\n<p>  <\/p>\n<p>\u0422\u044b \u0440\u0438\u0441\u0443\u0435\u0448\u044c \u043e\u0431\u044b\u0447\u043d\u043e\u0435, \u0432\u043e\u0441\u0435\u043c\u044c-\u043d\u0430-\u0432\u043e\u0441\u0435\u043c\u044c \u0448\u0430\u0445\u043c\u0430\u0442\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u043d\u0430 \u0431\u0435\u043b\u043e\u0439 \u043d\u0430\u0441\u0442\u0435\u043d\u043d\u043e\u0439 \u0434\u043e\u0441\u043a\u0435, \u0438 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0448\u044c \u0433\u0440\u0443\u043f\u043f\u0443 \u0438\u0437 \u0432\u043e\u0441\u044c\u043c\u0438 \u043a\u043e\u0440\u043e\u043b\u0435\u0432 \u043f\u043e \u0446\u0435\u043d\u0442\u0440\u0443. \u041e\u043d\u0438 \u0441\u0442\u043e\u044f\u0442 \u0442\u0435\u0441\u043d\u044b\u043c \u043a\u0440\u0443\u0436\u043a\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c \u043a\u0430\u043a \u0440\u0430\u0432\u043d\u044b\u0435.<\/p>\n<p>  <\/p>\n<p>&quot;\u042d, \u043d\u0435\u0442 \u2014 \u044d\u0442\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u0412\u0438\u0434\u0438\u0448\u044c? \u042d\u0442\u0430 \u043a\u043e\u0440\u043e\u043b\u0435\u0432\u0430 \u043e\u0434\u043d\u0438\u043c \u0445\u043e\u0434\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0441\u0440\u0443\u0431\u0438\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0438\u0445 \u044d\u0442\u0438\u0445 \u0447\u0435\u0442\u044b\u0440\u0435\u0445&quot;.<\/p>\n<p>  <\/p>\n<p>&quot;\u0422\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438&quot;, \u2014 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0448\u044c \u0442\u044b \u0433\u043e\u043b\u043e\u0441\u043e\u043c, \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u043c \u043a\u0430\u043a \u043a\u0430\u043c\u0435\u043d\u044c, \u2014 &quot;\u0432\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0432\u043e\u0441\u044c\u043c\u0435\u0440\u044b\u0445 \u043c\u043e\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0436\u0435\u043d\u0449\u0438\u043d \u0432 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u043d\u0430\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0441\u0442\u0440\u0435\u043c\u044f\u0442\u0441\u044f \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430 \u0443\u0431\u0438\u0442\u044c?&quot;<\/p>\n<p>  <\/p>\n<p>&quot;\u042d\u2026 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438&quot;.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u044d\u0442\u043e \u043c\u0430\u0442\u0440\u0438\u0430\u0440\u0445\u0438 \u0432\u0440\u0430\u0436\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u043b\u0430\u043d\u043e\u0432. \u0421\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u043e\u0431\u0441\u0443\u0434\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0438\u0440\u0438\u0435 \u2014 \u043d\u043e \u043d\u0438 \u043e\u0434\u043d\u0430 \u043d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0439, \u0435\u0441\u043b\u0438 \u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0434\u043e\u0442\u044f\u043d\u0443\u0442\u044c\u0441\u044f \u043a\u0438\u043d\u0436\u0430\u043b\u043e\u043c. \u0422\u0430\u043a\u043e\u0435 \u0442\u043e\u0436\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0442\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430.<\/p>\n<p>  <\/p>\n<p>&quot;\u042f \u043c\u043e\u0433\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u044f\u0437\u044b\u043a?&quot;<\/p>\n<p>  <\/p>\n<p>&quot;\u041a\u043e\u043d\u0435\u0447\u043d\u043e.&quot;<\/p>\n<p>  <\/p>\n<p>\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0439 \u0431\u044b\u0441\u0442\u0440\u043e, \u043f\u043e\u043a\u0430 \u043e\u043d \u043d\u0435 \u043f\u043e\u043d\u044f\u043b \u0441\u0432\u043e\u0435\u0439 \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<p>  <\/p>\n<pre><code>{-# OPTIONS_GHC -fno-warn-missing-methods #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE UndecidableInstances #-}<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u0410, \u044d\u0442\u043e Haskell! \u042f \u0435\u0433\u043e \u0443\u0447\u0438\u043b \u0432 \u043a\u043e\u043b\u043b\u0435\u0436\u0434\u0435!&quot;. \u041e\u043d \u0437\u0430\u043c\u043e\u043b\u043a\u0430\u0435\u0442 \u0438 \u0444\u044b\u0440\u043a\u0430\u0435\u0442. &quot;Undecidable instances?&quot;<\/p>\n<p>  <\/p>\n<p>&quot;\u041d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&quot;, \u2014 \u0440\u0430\u0434\u043e\u0441\u0442\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0448\u044c \u0442\u044b \u0435\u0433\u043e, &quot;\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 Hask \u043d\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f&quot;.<\/p>\n<p>  <\/p>\n<p>&quot;\u0410, \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e&quot;, \u2014 \u041a\u0440\u0438\u0441 \u0432\u044b\u0434\u0430\u0435\u0442 \u0441\u0432\u043e\u0435 \u043d\u0435\u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043c\u043d\u0435\u043d\u0438\u0435, \u043d\u0438 \u043a \u043a\u043e\u043c\u0443 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u044f\u0441\u044c. &quot;\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043e\u0431\u044b\u0447\u043d\u043e \u043c\u044b\u0441\u043b\u0438\u043b\u0438 \u0432 \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430\u0445 \u0425\u0430\u0441\u043a\u0435\u043b\u044f, \u0433\u0434\u0435 \u0443 \u0442\u0438\u043f\u043e\u0432 \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438\u0436\u043d\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439&quot;.<\/p>\n<p>  <\/p>\n<p>&quot;\u041c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a&quot;, \u2014 \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u0448\u044c\u0441\u044f \u0442\u044b, \u043d\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0442\u0438\u0445\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u041a\u0440\u0438\u0441 \u0442\u0435\u0431\u044f \u0443\u0441\u043b\u044b\u0448\u0430\u043b, \u0431\u0443\u0434\u0443\u0447\u0438 \u0442\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0439 \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c.<\/p>\n<p>  <\/p>\n<pre><code>nil = undefined <\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441. \u041d\u0430\u0434\u043e \u0435\u0433\u043e \u043e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c, \u0432\u044b\u0434\u0430\u0432 \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u043f\u0440\u0438\u0434\u0435\u0442 \u0432 \u0433\u043e\u043b\u043e\u0432\u0443. &quot;\u0427\u0442\u043e\u0431\u044b \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043d\u0430\u0448\u0438\u0445 \u043a\u043e\u0440\u043e\u043b\u0435\u0432, \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f linked list, \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e?&quot;<\/p>\n<p>  <\/p>\n<p>&quot;\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0438\u043b\u0438 \u0432\u0435\u043a\u0442\u043e\u0440&quot;.<\/p>\n<p>  <\/p>\n<p>&quot;\u0421\u043f\u0438\u0441\u043a\u0438 \u043f\u0440\u043e\u0449\u0435&quot;.<\/p>\n<p>  <\/p>\n<p>&quot;\u041e\u043a\u0435\u0439, \u0445\u043e\u0440\u043e\u0448\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u0447\u0442\u043e \u0442\u0435\u0431\u0435 \u0443\u0434\u043e\u0431\u043d\u0435\u0439&quot;.<\/p>\n<p>  <\/p>\n<p>\u0412\u044b\u0437\u044b\u0432\u0430\u0435\u0448\u044c \u0438\u0437 \u043f\u0443\u0441\u0442\u043e\u0442\u044b \u0441\u0432\u044f\u0437\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a. \u0422\u043e\u0442 \u043f\u043b\u0430\u0432\u0430\u0435\u0442 \u043f\u043e \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438 \u044d\u043a\u0440\u0430\u043d\u0430: \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u0432\u044b\u0440\u0430\u0436\u0430\u0435\u043c\u0430\u044f \u0442\u044b\u0441\u044f\u0447\u044c\u044e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432, \u043d\u043e \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u0430\u044f. \u0422\u044b \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u043e \u0432\u0437\u0434\u044b\u0445\u0430\u0435\u0448\u044c.<\/p>\n<p>  <\/p>\n<pre><code>data Nil data Cons x xs<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u0410 \u043d\u0435\u043b\u044c\u0437\u044f \u043b\u0438 \u0431\u044b\u043b\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c\u0438 \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438?&quot; \u2014 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u041a\u0440\u0438\u0441, \u0447\u044c\u044f \u0431\u0440\u043e\u0432\u044c \u043f\u043e\u043b\u0437\u0435\u0442 \u0432\u0432\u0435\u0440\u0445.<\/p>\n<p>  <\/p>\n<p>&quot;\u0427\u0442\u043e?&quot; \u2014 \u0442\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u0448\u044c \u043e \u0447\u0435\u043c \u043e\u043d \u0433\u043e\u0432\u043e\u0440\u0438\u0442. &quot;\u041e, \u043d\u0435\u0442 \u2014 \u0442\u043e\u0433\u0434\u0430 \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0442\u0430\u0449\u0438\u0442\u044c \u0441\u044e\u0434\u0430 \u0432\u0441\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443. \u041f\u0440\u043e\u0449\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u0445 \u0432\u043d\u0443\u0442\u0440\u0438&quot;.<\/p>\n<p>  <\/p>\n<pre><code>class First list x | list -&gt; x instance First Nil Nil instance First (Cons x more) x<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e &#8216;class&#8217; \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0438&quot; \u2014 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0448\u044c \u0442\u044b \u041a\u0440\u0438\u0441\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u043a \u043a\u043e\u0435-\u0447\u0442\u043e \u0437\u0430\u0431\u044b\u043b. &quot;First \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 x \u0438\u0437 \u043d\u0435\u0433\u043e. \u0423 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u0432\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u2014 Haskell \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 pattern matching, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c. First \u043e\u0442 \u0441\u043f\u0438\u0441\u043a\u0430 Nil \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 Nil, \u0430 First \u043e\u0442 \u044f\u0447\u0435\u0439\u043a\u0438 Cons \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044f\u0447\u0435\u0439\u043a\u0438, x&quot;.<\/p>\n<p>  <\/p>\n<p>\u0422\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0448\u044c \u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0443\u0441\u0432\u043e\u0438\u0442\u044c\u0441\u044f, \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0448\u044c \u043a \u0441\u043a\u043b\u0435\u0438\u0432\u0430\u043d\u0438\u044e \u0441\u043f\u0438\u0441\u043a\u043e\u0432.<\/p>\n<p>  <\/p>\n<pre><code>class ListConcat a b c | a b -&gt; c instance ListConcat Nil x x instance (ListConcat as bs cs)   =&gt; ListConcat (Cons a as) bs (Cons a cs)<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u0410 \u0447\u0442\u043e \u0437\u0430 \u0441\u0442\u0440\u0435\u043b\u043a\u0430?&quot; \u2014 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u041a\u0440\u0438\u0441. \u0413\u043e\u0432\u043e\u0440\u0438\u0448\u044c \u0435\u043c\u0443, \u0447\u0442\u043e \u043e\u043d\u0430 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0438\u043c\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044e. &quot;\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c ListConcat \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0438, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d ListConcat \u0434\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u0438&quot;.<\/p>\n<p>  <\/p>\n<p>\u0411\u0440\u0435\u0437\u0436\u0438\u0442 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435. &quot;\u0410. \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e! \u042d\u0442\u043e \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u044f, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 ListConcat \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043e\u0431\u0435\u0438\u0445 \u0441\u0442\u043e\u0440\u043e\u043d. \u0410 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441 Nil \u2014 \u044d\u0442\u043e \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439&quot;.<\/p>\n<p>  <\/p>\n<p>&quot;\u0418\u043c\u0435\u043d\u043d\u043e&quot;. \u0422\u044b \u0442\u0430\u043a \u0433\u043e\u0440\u0434\u0438\u0448\u044c\u0441\u044f \u041a\u0440\u0438\u0441\u043e\u043c. \u041e\u043d \u0438\u0434\u0435\u0442 \u0442\u043e\u0447\u043d\u043e \u0432 \u043d\u043e\u0433\u0443. &quot;\u0410 \u044d\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0441\u043a\u043b\u0435\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043f\u0438\u0441\u043a\u043e\u0432&quot;.<\/p>\n<p>  <\/p>\n<pre><code>-- Concatenate all lists in a list class ListConcatAll ls l | ls -&gt; l instance ListConcatAll Nil Nil instance (ListConcat chunk acc result,           ListConcatAll rest acc)   =&gt; ListConcatAll (Cons chunk rest) result  -- Is any element of this list True? class AnyTrue list t | list -&gt; t instance AnyTrue Nil              False instance AnyTrue (Cons True more) True instance (AnyTrue list t)   =&gt; AnyTrue (Cons False list) t<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u0438, \u0447\u0435\u043c \u0442\u0435\u0431\u0435 \u043f\u043e \u043d\u0440\u0430\u0432\u0443, \u0442\u0430\u043a \u0447\u0442\u043e \u043e\u0442\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0447\u0435\u043c\u0443 \u043f\u043e\u043f\u0440\u043e\u0449\u0435. &quot;\u0414\u0430\u0432\u0430\u0439 \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f \u0431\u0443\u043b\u0435\u0432\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438&quot;, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0448\u044c \u0442\u044b \u0442\u043e\u043d\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e\u0442 \u043d\u0430 \u043e\u0431\u0435\u0434.<\/p>\n<p>  <\/p>\n<p>&quot;\u0417\u0430\u0447\u0435\u043c?&quot;<\/p>\n<p>  <\/p>\n<p>&quot;\u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b, \u043a\u043e\u043d\u0435\u0447\u043d\u043e&quot;<\/p>\n<p>  <\/p>\n<p>\u0425\u0432\u0430\u0442\u0430\u0435\u0448\u044c \u0438\u0437 \u043f\u0443\u0441\u0442\u043e\u0442\u044b \u0434\u0432\u0435 \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b, \u0438 \u043d\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0448\u044c \u0438\u0445 \u0441\u043c\u044b\u0441\u043b\u043e\u043c.<\/p>\n<p>  <\/p>\n<pre><code>data True data False  class Not b1 b | b1 -&gt; b instance Not False True instance Not True  False  class Or b1 b2 b | b1 b2 -&gt; b instance Or True  True  True instance Or True  False True instance Or False True  True instance Or False False False<\/code><\/pre>\n<p>  <\/p>\n<p>\u0424\u0440\u0435\u0439\u044f, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u043f\u043e\u0440\u0430\u0434\u0443\u0435\u0442\u0441\u044f. \u0420\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0430\u043b\u0433\u0435\u0431\u0440\u044b \u0432 \u043c\u0438\u0440 \u2014 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435.<\/p>\n<p>  <\/p>\n<p>&quot;\u0418 \u044f \u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0447\u0442\u043e \u0435\u0449\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430, \u0447\u0442\u043e\u0431\u044b \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043d\u0430\u0448\u0438\u0445 \u043a\u043e\u0440\u043e\u043b\u0435\u0432&quot; \u2014 \u0431\u043e\u0440\u043c\u043e\u0447\u0435\u0448\u044c \u0442\u044b. &quot;\u041c\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445, \u0442\u0430\u043a \u0447\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u041f\u0435\u0430\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e&quot;. \u0412\u044b\u0434\u0435\u0440\u0433\u0438\u0432\u0430\u0435\u0448\u044c \u0432\u043e\u043b\u043e\u0441 \u0438\u0437 \u043f\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0438 \u0437\u0430\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0448\u044c \u043d\u0430 \u043d\u0451\u043c \u0443\u0437\u0435\u043b\u043e\u043a \u0434\u043b\u044f \u043d\u043e\u043b\u044f.<\/p>\n<p>  <\/p>\n<pre><code>data Z data S n  type N0 = Z type N1 = S N0 type N2 = S N1 type N3 = S N2 type N4 = S N3 type N5 = S N4 type N6 = S N5 type N7 = S N6 type N8 = S N7<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u0422\u044b\u2026 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0448\u044c \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0432\u0440\u0443\u0447\u043d\u0443\u044e? \u0417\u0430\u0447\u0435\u043c?&quot;<\/p>\n<p>  <\/p>\n<p>&quot;Haskell \u2014 \u0434\u043b\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u043e\u0432&quot;, \u2014 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0448\u044c \u0442\u044b, &quot;\u041c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0441\u0432\u043e\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u044b.&quot;<\/p>\n<p>  <\/p>\n<pre><code>-- Equality class PeanoEqual a b t | a b -&gt; t instance PeanoEqual Z     Z     True instance PeanoEqual (S a) Z     False instance PeanoEqual Z     (S b) False instance (PeanoEqual a b t)   =&gt; PeanoEqual (S a) (S b) t  -- Comparison (&lt;) class PeanoLT a b t | a b -&gt; t instance PeanoLT Z      Z     False instance PeanoLT (S x)  Z     False instance PeanoLT Z      (S x) True instance (PeanoLT a b t)   =&gt; PeanoLT (S a) (S b) t  -- Absolute difference class PeanoAbsDiff a b c | a b -&gt; c instance PeanoAbsDiff Z Z Z instance PeanoAbsDiff Z (S b) (S b) instance PeanoAbsDiff (S a) Z (S a) instance (PeanoAbsDiff a b c)   =&gt; PeanoAbsDiff (S a) (S b) c  -- Integers from n to 0 class Range n xs | n -&gt; xs instance Range Z Nil instance (Range n xs)   =&gt; Range (S n) (Cons n xs)<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u0421\u0442\u043e\u0439, \u043f\u043e\u0433\u043e\u0434\u0438&quot; \u2014 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442 \u041a\u0440\u0438\u0441. &quot;\u0410 \u0440\u0430\u0437\u0432\u0435 \u043d\u0435\u2026 \u0440\u0430\u0437\u0432\u0435 \u043d\u0435 \u043d\u0430\u0434\u043e \u0437\u0434\u0435\u0441\u044c \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044e \u0442\u0438\u043f\u0430? \u041d\u0443 \u0445\u043e\u0442\u044f \u0431\u044b \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439?&quot;<\/p>\n<p>  <\/p>\n<p>\u0422\u044b \u043c\u0438\u043b\u043e \u0443\u043b\u044b\u0431\u0430\u0435\u0448\u044c\u0441\u044f. &quot;\u0425\u0430\u0441\u043a\u0435\u043b\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439, \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u044f\u0437\u044b\u043a&quot;.<\/p>\n<p>  <\/p>\n<p>\u041a\u0440\u0438\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a, \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u043f\u0440\u043e\u0433\u043b\u043e\u0442\u0438\u043b \u043b\u044f\u0433\u0443\u0448\u043a\u0443.<\/p>\n<p>  <\/p>\n<p>&quot;\u0421\u043c\u043e\u0442\u0440\u0438, \u044f \u043f\u043e\u043a\u0430\u0436\u0443. \u0414\u0430\u0432\u0430\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u0434\u0438\u043d \u043e\u0434\u043d\u043e\u043c\u0443.&quot;<\/p>\n<p>  <\/p>\n<pre><code>class LegalCompare t | -&gt; t   where legalCompare :: t instance (PeanoEqual (S Z) (S Z) t)   =&gt; LegalCompare t  *Main&gt; :type legalCompare legalCompare :: True<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u0412\u0438\u0434\u0438\u0448\u044c? legalCompare \u0440\u0430\u0432\u0435\u043d True. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u0430\u0432\u0430\u0439 \u0441\u0440\u0430\u0432\u043d\u0438\u043c True \u0438 List?&quot;<\/p>\n<p>  <\/p>\n<pre><code>class IllegalCompare t | -&gt; t   where illegalCompare :: t instance (PeanoEqual True (Cons Z False) t)   =&gt; IllegalCompare t<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u0412\u0438\u0434\u0438\u0448\u044c? \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u043b\u0438\u0447\u043d\u043e. \u0421\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u2014 \u0432\u0441\u043f\u043e\u043c\u043d\u0438, Haskell \u0432\u0435\u0434\u044c \u043b\u0435\u043d\u0438\u0432\u044b\u0439&quot;.<\/p>\n<p>  <\/p>\n<pre><code>*Main&gt; :type illegalCompare illegalCompare :: PeanoEqual True (Cons Z False) t =&gt; t<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u0412\u043e\u0442, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430! \u041e\u0448\u0438\u0431\u043a\u0430 \u0442\u0438\u043f\u0430 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435&quot;.<\/p>\n<p>  <\/p>\n<p>&quot;\u041d\u043e \u043f\u0440\u043e \u043e\u0448\u0438\u0431\u043a\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e&#8230;&quot;<\/p>\n<p>  <\/p>\n<p>&quot;\u041d\u0443, \u0437\u043d\u0430\u0435\u0448\u044c \u043b\u0438. \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 Haskell \u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b \u0441\u0432\u043e\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f&quot;.<\/p>\n<p>  <\/p>\n<p>\u041a\u0440\u0438\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u043d\u044b\u043c. \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c \u0432\u044b\u0441\u0448\u0435\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430.<\/p>\n<p>  <\/p>\n<p>&quot;\u041f\u043e \u043d\u0435\u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u043e\u043c\u0443 \u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044e \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432, \u0432 Haskell \u043d\u0435\u0442 \u043a\u0430\u0440\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \u0412\u043e\u0442 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0430 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0434\u043d\u043e-\u0430\u0440\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438&quot;.<\/p>\n<p>  <\/p>\n<pre><code>class Apply f a r | f a -&gt; r<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u041f\u0440\u043e\u0441\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0432\u043e\u0434 a \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 r&quot;, \u2014 \u043c\u0435\u043b\u043e\u0434\u0438\u044f \u0438\u043c\u0451\u043d \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0437\u0432\u0443\u0447\u0438\u0442 \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u043a \u043f\u0435\u0441\u043d\u044f. &quot;\u0414\u043b\u044f \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0440\u043e\u0434\u0435 Partial1, Partial2 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435, \u043d\u043e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445, \u043f\u0440\u043e\u0449\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0433\u043e \u043a\u0430\u0440\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a!&quot;<\/p>\n<p>  <\/p>\n<pre><code>data Conj1 list instance Apply (Conj1 list) x (Cons x list)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0413\u043b\u0443\u0431\u043e\u043a\u043e \u0432\u0434\u044b\u0445\u0430\u0435\u0448\u044c, \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0448\u044c \u0441\u0432\u043e\u0435\u043c\u0443 \u0434\u0443\u0445\u0443 \u0432\u043e\u0441\u043f\u0430\u0440\u0438\u0442\u044c \u043e\u0442 \u044d\u0442\u0438\u0445 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0444\u043e\u0440\u043c \u043a \u0441\u0438\u044f\u044e\u0449\u0438\u043c \u0432\u044b\u0441\u043e\u0442\u0430\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432\u044b\u0441\u0448\u0435\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430.<\/p>\n<p>  <\/p>\n<pre><code>-- Map f over a list class Map f xs ys | f xs -&gt; ys instance Map f Nil Nil instance (Apply f x y, Map f xs ys)   =&gt; Map f (Cons x xs) (Cons y ys)  -- Map f over list and concatenate results together class MapCat f xs zs | f xs -&gt; zs instance MapCat f Nil Nil instance (Map f xs chunks, ListConcatAll chunks ys)   =&gt; MapCat f xs ys  -- Filter a list with an Apply-able predicate function class AppendIf pred x ys zs | pred x ys -&gt; zs instance AppendIf True x ys (Cons x ys) instance AppendIf False x ys ys  class Filter f xs ys | f xs -&gt; ys instance Filter f Nil Nil instance (Apply f x t,           Filter f xs ys,           AppendIf t x ys zs)   =&gt; Filter f (Cons x xs) zs<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u0438\u0435 \u043d\u0430\u0434\u043e \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u0432 \u043c\u0438\u0440 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439. \u041a\u0440\u0438\u0441 \u0432\u0441\u0451 \u0435\u0449\u0435 \u0442\u0443\u0442, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438. \u042d\u043a\u0440\u0430\u043d \u0442\u0432\u043e\u0435\u0433\u043e \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u0432 \u0440\u043e\u0441\u043a\u043e\u0448\u043d\u043e\u0435 \u043c\u0435\u0441\u0438\u0432\u043e \u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u044b\u0445 \u0442\u043e\u043d\u043e\u0432, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u0440\u0430\u0439\u043d\u0435\u043c\u0443 \u0445\u043e\u043b\u043e\u0434\u0443, \u043d\u043e \u043a\u043e\u0434 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u043c \u0432 \u0435\u0433\u043e \u0433\u043b\u0443\u0431\u0438\u043d\u0430\u0445. \u042d\u043a\u0440\u0430\u043d \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0442\u0435\u0431\u0435 \u0437\u0430\u043c\u0435\u0440\u0437\u0448\u0435\u0435 \u043e\u0437\u0435\u0440\u043e \u0432 \u0441\u0443\u043c\u0435\u0440\u043a\u0430\u0445. \u0416\u0438\u0434\u043a\u0438\u0439 \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b.<\/p>\n<p>  <\/p>\n<p>&quot;\u041a\u0440\u0438\u0441. \u041a\u0440\u0438\u0441.&quot; \u0422\u043e\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u043c\u043e\u0440\u0433\u0430\u0435\u0442, \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u043f\u043e\u043f\u0430\u043b \u0438\u0437 \u0442\u044c\u043c\u044b \u043d\u0430 \u0441\u0432\u0435\u0442. \u041a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0433\u043b\u0430\u0437\u0430. \u0422\u044b \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0448\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u0430, \u043a\u043e\u0433\u0434\u0430 \u0442\u0432\u043e\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0433\u043b\u0430\u0437\u0430 \u0435\u0449\u0435 \u0438\u043c\u0435\u043b\u0438 \u0446\u0432\u0435\u0442. &quot;\u041c\u044b \u0433\u043e\u0442\u043e\u0432\u044b.&quot;<\/p>\n<p>  <\/p>\n<p>&quot;\u0414\u0430. \u0425\u043e\u0440\u043e\u0448\u043e.&quot;<\/p>\n<p>  <\/p>\n<p>&quot;\u041a\u043e\u0440\u043e\u043b\u0435\u0432\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0435\u0435 \u0434\u0432\u0443\u043c\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 \u043d\u0430 \u0434\u043e\u0441\u043a\u0435: x \u0438 y. \u0415\u0449\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u0440\u043e\u043b\u0435\u0432 \u043d\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0435 x&quot;.<\/p>\n<p>  <\/p>\n<pre><code>data Queen x y data Queen1 x instance Apply (Queen1 x) y (Queen x y)  -- A list of queens in row x with y from 0 to n. class QueensInRow n x queens | n x -&gt; queens instance (Range n ys, Map (Queen1 x) ys queens)   =&gt; QueensInRow n x queens<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u0414\u0430, \u043a\u043e\u0440\u043e\u043b\u0435\u0432\u044b!&quot; \u2014 \u0431\u0443\u0440\u0447\u0438\u0448\u044c \u0442\u044b. \u042d\u0442\u043e, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e <a href=\"https:\/\/www.google.com\/search?q=yas+kween\">\u043d\u0435 \u0442\u043e\u0442<\/a> \u0432\u0438\u0434 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e.<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u043a\u043e\u0440\u043e\u043b\u0435\u0432\u0430 \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u0430\u0440\u0438\u0442\u044c \u043f\u043e \u0432\u043e\u0441\u044c\u043c\u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043c. \u0422\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u043b\u0430\u0433\u0430\u043b\u0430, \u0447\u0442\u043e \u044d\u0442\u043e \u043c\u0435\u0442\u0430\u0444\u043e\u0440\u0430.<\/p>\n<p>  <\/p>\n<pre><code>-- Does queen a threaten queen b? class Threatens a b t | a b -&gt; t instance (PeanoEqual ax bx xeq,           PeanoEqual ay by yeq,           Or xeq yeq xyeq,           PeanoAbsDiff ax bx dx,           PeanoAbsDiff ay by dy,           PeanoEqual dx dy deq,           Or xyeq deq res)   =&gt; Threatens (Queen ax ay) (Queen bx by) res  -- Partial application of Threatens data Threatens1 a instance (Threatens a b t)   =&gt; Apply (Threatens1 a) b t<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u043e\u0432\u0430\u044f \u043a\u043e\u0440\u043e\u043b\u0435\u0432\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043c\u043d\u0430\u0442\u0435, \u0441\u0442\u0440\u0435\u043c\u044f\u0441\u044c \u043d\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u044e. \u041e\u043d\u0430 \u0447\u0443\u0442\u043a\u043e \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c\u0438, \u043e\u0441\u0442\u0430\u0432\u0430\u044f\u0441\u044c \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u0434\u043e\u0441\u044f\u0433\u0430\u0435\u043c\u043e\u0441\u0442\u0438. \u0413\u0434\u0435 \u0435\u0439 \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0442\u0430\u0442\u044c? \u0422\u044b \u0432\u043e\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0448\u044c \u043f\u0430\u0447\u043a\u0443 \u0432\u0441\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u2014 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u0438\u0440\u043e\u0432, \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u0440\u043e\u043b\u0435\u0432 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0445.<\/p>\n<p>  <\/p>\n<pre><code>-- Is queen b compatible with all queen as? class Safe config queen t | config queen -&gt; t instance (Map (Threatens1 queen) config m1,           AnyTrue m1 t1,           Not     t1 t2)   =&gt; Safe config queen t2  data Safe1 config instance (Safe config queen t)   =&gt; Apply (Safe1 config) queen t  -- Add a queen with the given x coordinate to a legal configuration, returning -- a set of legal configurations. class AddQueen n x c cs | n x c -&gt; cs instance (QueensInRow n x candidates,           Filter (Safe1 c) candidates filtered,           Map (Conj1 c) filtered cs)   =&gt; AddQueen n x c cs  data AddQueen2 n x instance (AddQueen n x c cs)   =&gt; Apply (AddQueen2 n x) c cs  -- Add a queen at x to every configuration, returning a set of legal -- configurations. class AddQueenToAll n x cs cs' | n x cs -&gt; cs' instance (MapCat (AddQueen2 n x) cs cs')   =&gt; AddQueenToAll n x cs cs'<\/code><\/pre>\n<p>  <\/p>\n<p>&quot;\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0432\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u044e&quot;, \u2014 \u0448\u0435\u043f\u0447\u0435\u0448\u044c \u0442\u044b, \u043e\u0431\u0440\u0430\u0449\u0430\u044f \u0437\u0430\u043a\u043b\u044f\u0442\u0438\u0435, \u0441\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0442\u0440\u0435\u0434\u043e\u043c, \u043d\u0430 \u0441\u0430\u043c\u043e \u0441\u0435\u0431\u044f. \u041f\u043e \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u0440\u043e\u043b\u0435\u0432\u0435 \u043d\u0430 \u0440\u044f\u0434, \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438. \u0422\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0448\u044c \u0441\u0435\u0431\u0435, \u043a\u0430\u043a \u043c\u043e\u0433\u043b\u0430 \u0431\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0430 &quot;\u043e \u043d\u0430\u0441&quot; \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u0445 \u0441\u0442\u0430\u0440\u0442\u0430\u043f\u0430.<\/p>\n<p>  <\/p>\n<pre><code>-- Add queens recursively class AddQueensIf pred n x cs cs' | pred n x cs -&gt; cs' instance AddQueensIf False n x cs cs instance (AddQueenToAll n x cs cs2,           AddQueens n (S x) cs2 cs')   =&gt; AddQueensIf True n x cs cs'  class AddQueens n x cs cs' | n x cs -&gt; cs' instance (PeanoLT x n pred,           AddQueensIf pred n x cs cs')   =&gt; AddQueens n x cs cs'  -- Solve class Solution n c | n -&gt; c where   solution :: n -&gt; c instance (AddQueens n Z (Cons Nil Nil) cs,           First cs c)   =&gt; Solution n c where solution = nil<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u0440\u0438\u0441 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0441\u043a\u0432\u043e\u0437\u044c \u0432\u0441\u0451, \u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u0438\u0441\u043f\u044b\u0442\u0430\u0432\u0448\u0438\u0439 \u0441\u0442\u0440\u0430\u0448\u043d\u0443\u044e \u043f\u043e\u0442\u0435\u0440\u044e \u0438\u043b\u0438, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u0441\u0442\u0430\u0432\u0448\u0438\u0439 \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u0435\u043c \u0431\u043b\u0438\u0437\u043a\u043e\u0433\u043e \u0432\u0437\u0440\u044b\u0432\u0430. \u041d\u0435\u0436\u043d\u043e \u0431\u0435\u0440\u0435\u0448\u044c \u0435\u0433\u043e \u0437\u0430 \u043f\u043b\u0435\u0447\u043e. &quot;\u041f\u0441\u0441\u0442!&quot;, \u2014 \u0448\u0435\u043f\u0447\u0435\u0448\u044c \u0442\u044b,- &quot;\u0412\u0441\u0451 \u0433\u043e\u0442\u043e\u0432\u043e, \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0431\u043b\u0438\u0437\u043a\u043e&quot;.<\/p>\n<p>  <\/p>\n<pre><code>*Main&gt; :type solution (nil :: N6) solution (nil :: N6)   :: Cons (Queen (S (S (S (S (S Z))))) (S Z))        (Cons (Queen (S (S (S (S Z)))) (S (S (S Z))))           (Cons (Queen (S (S (S Z))) (S (S (S (S (S Z))))))              (Cons (Queen (S (S Z)) Z)                 (Cons (Queen (S Z) (S (S Z)))                    (Cons (Queen Z (S (S (S (S Z)))))                       Nil)))))<\/code><\/pre>\n<p>  <\/p>\n<p>\u0413\u043b\u044f\u043d\u044c-\u043a\u0430, \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u0440\u0430\u0437\u043f\u043e\u043b\u043e\u0436\u0438\u043b \u0432\u044b\u0434\u0430\u0447\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a, \u0441\u043e\u0437\u0434\u0430\u0432 \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u0443\u044e \u043b\u0438\u043d\u0438\u044e \u043d\u0443\u043b\u0435\u0439 \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u0441\u0438. &quot;\u0422\u0430\u043a, \u0443 \u043d\u0430\u0441 \u043a\u043e\u0440\u043e\u043b\u0435\u0432\u044b \u043d\u0430 5,1, \u043d\u0430 4,3, \u043d\u0430 3, 5, \u043d\u0430 2,0, 1,2, \u0438 0,4. \u041f\u043e\u0439\u0434\u0435\u0442, \u041a\u0440\u0438\u0441?&quot;<\/p>\n<p>  <\/p>\n<p>\u041a\u0440\u0438\u0441 \u043f\u044f\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u0442\u0435\u0431\u044f \u043e\u0447\u0435\u043d\u044c, \u043e\u0447\u0435\u043d\u044c \u0434\u043e\u043b\u0433\u043e. &quot;\u0422\u044b \u043d\u0438 \u043d\u0438 \u0440\u0430\u0437\u0443\u2026 \u043d\u0438 \u0440\u0430\u0437\u0443 \u043d\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0422\u044b\u2026 \u0442\u044b \u0432\u0435\u0434\u044c \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0448\u044c, \u0447\u0442\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0442\u0438\u043f\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043f\u0440\u0430\u0432\u0434\u0430?&quot;<\/p>\n<p>  <\/p>\n<p>&quot;\u041d\u0435\u0442&quot;, \u2014 \u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0448\u044c \u0442\u044b \u0435\u0433\u043e, \u043a\u0430\u043a \u0437\u0430\u043c\u0435\u0441\u0442\u0438\u0442\u0435\u043b\u044c \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430 \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u044c. &quot;\u041d\u0435\u0442, \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a&quot;.<\/p>\n<p>  <\/p>\n<p>\u0422\u043e\u0442 \u043e\u0442\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0432\u043e\u0435\u043c \u043a\u0440\u0435\u0441\u043b\u0435 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u043a\u043e, \u0447\u0442\u043e \u0442\u044b \u0434\u0443\u043c\u0430\u0435\u0448\u044c \u0447\u0442\u043e \u043e\u043d \u0432\u043e\u0442-\u0432\u043e\u0442 \u043f\u0435\u0440\u0435\u0432\u0435\u0440\u043d\u0451\u0442\u0441\u044f, \u0430 \u0437\u0430\u0442\u0435\u043c \u0442\u0440\u0451\u0442 \u0441\u0432\u043e\u0435 \u043b\u0438\u0446\u043e \u043e\u0431\u0435\u0438\u043c\u0438 \u0440\u0443\u043a\u0430\u043c\u0438. \u0422\u044b, \u0443\u0436\u0435 \u0432\u0438\u0434\u044f \u0441\u043a\u0432\u043e\u0437\u044c <em>seidr<\/em> email \u0441 \u043e\u0442\u043a\u0430\u0437\u043e\u043c, \u0437\u043d\u0430\u0435\u0448\u044c \u0447\u0442\u043e \u043e\u043d \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441\u043a\u0430\u0437\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<p>&quot;\u041c\u044b \u0441 \u0432\u0430\u043c\u0438 \u0441\u0432\u044f\u0436\u0435\u043c\u0441\u044f&quot;.<\/p>\n<p>  <\/p>\n<p>\u0421 \u0438\u0441\u043a\u0440\u0435\u043d\u043d\u0435\u0439 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c\u044e <a href=\"https:\/\/twitter.com\/importantshock\">\u041f\u0430\u0442\u0440\u0438\u043a\u0443 \u0422\u043e\u043c\u043f\u0441\u043e\u043d\u0443<\/a> \u0438 <a href=\"https:\/\/wiki.haskell.org\/wikiupload\/d\/dd\/TMR-Issue8.pdf\">Type Level Insanity<\/a> \u041a\u043e\u043d\u0440\u0430\u0434\u0430 \u041f\u0430\u0440\u043a\u0435\u0440\u0430.<\/p>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/327913\/\"> https:\/\/habrahabr.ru\/post\/327913\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c &quot;\u0425\u0430\u0431\u0440\u0430\u0445\u0430\u0431\u0440\u0430&quot; \u043f\u0435\u0440\u0435\u0432\u043e\u0434 <a href=\"https:\/\/aphyr.com\/posts\/342-typing-the-technical-interview\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> Kyle Kingsbury, a.k.a &quot;Aphyr&quot;.<br \/>  \u0420\u0430\u043d\u0435\u0435: <a href=\"https:\/\/habrahabr.ru\/post\/326726\/\">\u0417\u0430\u043a\u043b\u0438\u043d\u0430\u044f \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e<\/a><\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0440\u0435\u0436\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0430, \u0437\u0430\u0434\u043e\u043b\u0433\u043e \u0434\u043e \u0432\u043e\u0441\u0445\u043e\u0434\u0430 \u0426\u0435\u0440\u043a\u0432\u0438, \u0432\u0441\u0435 \u0437\u0430\u043a\u043b\u044f\u0442\u044c\u044f \u043f\u0440\u043e\u0438\u0437\u043d\u043e\u0441\u0438\u043b\u0438\u0441\u044c \u043f\u043e \u0447\u0438\u0441\u0442\u043e\u043c\u0443 \u0441\u043b\u0443\u0447\u0430\u044e, \u0432\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0431\u044b\u043b\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u044b, \u0430 \u0441\u043c\u0435\u0440\u0442\u044c \u0431\u044b\u043b\u0430 \u043e\u0431\u044b\u0434\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e. \u041c\u043d\u043e\u0433\u0438\u0435 \u0432\u0435\u0434\u044c\u043c\u044b \u043f\u043e\u043a\u0430\u043b\u0435\u0447\u0438\u043b\u0438\u0441\u044c \u0438\u0437-\u0437\u0430 \u0441\u0432\u043e\u0435\u0439 \u043c\u0430\u0433\u0438\u0438, \u0438\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0438 \u0438\u0437\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u0446\u0435\u043d\u0442\u0440\u0435 \u043a\u0440\u0443\u0433\u0430 \u0438\u0441\u043a\u0440\u0438\u0432\u043b\u0435\u043d\u043d\u044b\u0445, \u0437\u0430\u0441\u0442\u0435\u043a\u043b\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0438 \u0433\u043e\u0440\u044f\u0449\u0438\u0445 \u043a\u0430\u043c\u043d\u0435\u0439, \u043d\u0435 \u0433\u0430\u0441\u043d\u0443\u0449\u0438\u0445 \u0434\u0430\u0436\u0435 \u043f\u043e\u0434 \u0432\u043e\u0434\u043e\u0439; \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0441\u0447\u0435\u0437\u0430\u043b\u0438, \u0438\u043b\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0438 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0433\u043e\u0440\u043d\u044b\u043c \u043f\u0435\u0440\u0435\u0432\u0430\u043b\u0430\u043c, \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043a\u0430\u0441\u0430\u044f\u0441\u044c \u043d\u043e\u0433\u0430\u043c\u0438 \u0437\u0435\u043c\u043b\u0438, \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0441\u043e\u0433\u0440\u0435\u0432\u0430\u044f \u0432\u043e\u0437\u0434\u0443\u0445 \u0441\u0432\u043e\u0438\u043c \u0434\u044b\u0445\u0430\u043d\u0438\u0435\u043c.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-285865","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/285865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=285865"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/285865\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=285865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=285865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=285865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}