{"id":501669,"date":"2026-11-05T00:52:01","date_gmt":"2026-11-04T21:52:01","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=501669"},"modified":"2026-11-05T00:52:01","modified_gmt":"2026-11-04T21:52:01","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=501669","title":{"rendered":"True \u2014 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u044f\u0437\u044b\u043a, \u0433\u0434\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u0438 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0430\u043c\u0443 \u0441\u0435\u0431\u044f"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><strong>True<\/strong>\u00a0&#8212; \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0433\u0434\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0435\u0441\u0442\u044c \u0446\u0438\u043a\u043b, \u0430 \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b &#8212; \u043b\u0435\u043d\u0442\u0430 \u043a\u0443\u0431\u0438\u0442\u043e\u0432 (\u0441\u0442\u0440\u043e\u043a). <\/p>\n<p><strong>Simple<\/strong>\u00a0&#8212; \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u043d\u0430 Python 3 + Tkinter. \u041f\u0440\u043e\u0441\u0442\u043e\u0439, \u0431\u0435\u0437 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439.<\/p>\n<blockquote>\n<p><strong>\u0421\u0442\u0430\u0442\u0443\u0441<\/strong>: \u041f\u0440\u043e\u0435\u043a\u0442 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439, \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 MVP. \u0412 \u043e\u0431\u0449\u0435\u043c \u0438 \u0446\u0435\u043b\u043e\u043c, True\u00a0&#8212; \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0441\u00a0\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0435\u0439, \u0438 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a\u00a0\u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u044f\u0437\u044b\u043a.<\/p>\n<\/blockquote>\n<h3>\u0418\u0434\u0435\u044f<\/h3>\n<p>\u0412 True\u00a0\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445(\u043e\u0434\u043d\u0438\u043c \u0438\u0437) \u0438 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f (\u0430\u0433\u0435\u043d\u0442\u0430).<\/p>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0434\u0435\u0441\u044c \u043b\u0435\u043d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a (\u044f \u043d\u0430\u0437\u044b\u0432\u0430\u044e \u0438\u0445 \u043a\u0443\u0431\u0438\u0442\u0430\u043c\u0438).\u00a0<\/p>\n<p>\u0410\u0433\u0435\u043d\u0442-\u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044c &#8212; \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b\u00a0(\u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430\u00a0.cycle). \u041e\u043d \u0438\u0434\u0451\u0442 \u043f\u043e \u043b\u0435\u043d\u0442\u0435 \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437, \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435\u00a0\u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043d\u0438\u0436\u0435\u0441\u0442\u043e\u044f\u0449\u0435\u0439\u00a0\u0438\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u00a0\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0435.<\/p>\n<p><strong>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445, \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<\/strong>\u00a0\u041d\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0445 &#8212; \u0435\u0441\u0442\u044c \u043a\u0443\u0431\u0438\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0430\u0433\u0435\u043d\u0442 \u0447\u0438\u0442\u0430\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442.<\/p>\n<p><strong>\u0410\u0433\u0435\u043d\u0442 &#8212; \u043d\u0435 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440, \u0430 \u0447\u0430\u0441\u0442\u044c \u0444\u0430\u0439\u043b\u0430\u00a0<\/strong><code><strong>.cycle<\/strong><\/code><strong>.<\/strong>\u00a0\u041e\u043d \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e: \u0441\u0442\u0440\u043e\u043a\u0430\u00a0<a href=\"http:\/\/Mr.Green\" rel=\"noopener nofollow\"><code>Mr.Green<\/code><\/a><code>, ...<\/code>\u00a0&#8212; \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u0430\u043a \u0438 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435, \u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435.<\/p>\n<h3>\u041e\u0434\u043d\u0430 \u0438 \u0442\u0430 \u0436\u0435 \u043b\u043e\u0433\u0438\u043a\u0430 \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u044f\u0437\u044b\u043a\u0430\u0445<\/h3>\n<p><strong>True<\/strong> (<code>main.cycle<\/code>):<\/p>\n<pre><code>Mr.Green, #5fb85f | Data as &lt;condition&gt; | Aim: 1\u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0439\u0441\u044f \u043d\u0430 \u043b\u0438\u0444\u0442\u0435 Mr.Green :)6 = max1 = floor1 = dir= liftdir &gt; 0 ? floor =&gt;| lift:y(, ):floordir &lt; 0 ? lift:y(, ):last  -&gt; ::nothingfloor == max ? -1 =&gt; dirfloor == 1 ? 1 =&gt; dirfloor + dir =&gt; ::math =&gt; floor<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>(\u0417\u0434\u0435\u0441\u044c <code>=&gt;<\/code> &#8212; \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, <code>-&gt;<\/code> &#8212; \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435, <code>?<\/code> &#8212; \u0443\u0441\u043b\u043e\u0432\u0438\u0435)<\/p>\n<p><strong>Python<\/strong>:<\/p>\n<pre><code class=\"python\">max_floor = 6floor = 1dir = 1lift = []while True:    if dir &gt; 0:        lift.append(floor)    if dir &lt; 0 and lift:        lift.pop()    if floor == max_floor:        dir = -1    if floor == 1:        dir = 1    floor = floor + dir    print(f\"floor={floor} dir={dir} lift={lift}\")<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><strong>Lisp (Scheme)<\/strong>:<\/p>\n<pre><code class=\"lisp\">(define max-floor 6)(define floor 1)(define dir 1)(define lift '())(define (step)  (when (&gt; dir 0) (set! lift (append lift (list floor))))  (when (and (&lt; dir 0) (not (null? lift))) (set! lift (reverse (cdr (reverse lift)))))  (when (= floor max-floor) (set! dir -1))  (when (= floor 1) (set! dir 1))  (set! floor (+ floor dir))  (display (list floor dir lift)) (newline))(let loop () (step) (loop))<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><strong>Rust<\/strong>:<\/p>\n<pre><code class=\"rust\">fn main() {    let max_floor = 6;    let mut floor = 1;    let mut dir: i32 = 1;    let mut lift: Vec&lt;i32&gt; = Vec::new();    loop {        if dir &gt; 0 { lift.push(floor); }        if dir &lt; 0 { lift.pop(); }        if floor == max_floor { dir = -1; }        if floor == 1 { dir = 1; }        floor += dir;        println!(\"floor={} dir={} lift={:?}\", floor, dir, lift);    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>Python, Lisp \u0438 Rust \u0437\u0434\u0435\u0441\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u0442\u0443 \u0436\u0435 \u043b\u043e\u0433\u0438\u043a\u0443, \u043d\u043e \u043d\u0435 \u0447\u0438\u0442\u0430\u044e\u0442 \u0438 \u043d\u0435 \u043c\u0435\u043d\u044f\u044e\u0442 \u0441\u0432\u043e\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434. <strong>True<\/strong> \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 &#8212; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0430\u043c\u043e\u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f: \u0430\u0433\u0435\u043d\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438, <code>memory<\/code> \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u0435\u043a\u0441\u0442\u0435, <code>&lt;type&gt;<\/code> \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f. \u042d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u0438\u0435 True \u043e\u0442 \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432: \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 = \u0434\u0430\u043d\u043d\u044b\u0435 + \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432 \u043e\u0434\u043d\u043e\u043c.<\/p>\n<h3>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0438\u0434\u0435\u0438<\/h3>\n<h4>1. \u041a\u0443\u0431\u0438\u0442 = \u0441\u0442\u0440\u043e\u043a\u0430<\/h4>\n<p>\u0421\u0442\u0440\u043e\u043a\u0430 &#8212; \u043a\u0443\u0431\u0438\u0442. \u0415\u0451 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044f (\u0430\u0433\u0435\u043d\u0442).<\/p>\n<p>\u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u0430\u0433\u0435\u043d\u0442:<\/p>\n<ul>\n<li>\n<p><strong>\u0447\u0438\u0442\u0430\u0435\u0442<\/strong> \u0441\u0442\u0440\u043e\u043a\u0443 <code>target<\/code> (\u0442\u0438\u043f, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435),<\/p>\n<\/li>\n<li>\n<p><strong>\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442<\/strong> \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 (\u0435\u0441\u043b\u0438 <code>action<\/code> \/ <code>condition<\/code>),<\/p>\n<\/li>\n<li>\n<p><strong>\u043c\u0435\u043d\u044f\u0435\u0442<\/strong> <code>lines<\/code> (flush \u043f\u0430\u043c\u044f\u0442\u0438),<\/p>\n<\/li>\n<li>\n<p><strong>\u043c\u0435\u043d\u044f\u0435\u0442<\/strong> \u0441\u0442\u0440\u043e\u043a\u0443 \u0430\u0433\u0435\u043d\u0442\u0430 (<code>Data as &lt;type&gt;<\/code>).<\/p>\n<\/li>\n<\/ul>\n<h4>2. \u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044c = \u0430\u0433\u0435\u043d\u0442 = \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h4>\n<p>\u0410\u0433\u0435\u043d\u0442 &#8212; \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 <code>.cycle<\/code>:<\/p>\n<pre><code>Mr.Green, #5fb85f | Data as &lt;condition&gt; | Aim: 1<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<ul>\n<li>\n<p><a href=\"http:\/\/Mr.Green\" rel=\"noopener nofollow\"><code>Mr.Green<\/code><\/a> &#8212; \u0438\u043c\u044f,<\/p>\n<\/li>\n<li>\n<p><code>#5fb85f<\/code> &#8212; \u0446\u0432\u0435\u0442,<\/p>\n<\/li>\n<li>\n<p><code>Data as &lt;...&gt;<\/code> &#8212; \u0442\u0438\u043f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0433\u0435\u043d\u0442 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043b (\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0448\u0430\u0433),<\/p>\n<\/li>\n<li>\n<p><code>Aim: 1<\/code> &#8212; \u0446\u0435\u043b\u044c, \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0446\u0435\u043b\u044c \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442\u043e\u0439 (\u0432 ROADMAP)<\/p>\n<\/li>\n<\/ul>\n<h4>3. \u0426\u0435\u043f\u043e\u0447\u043a\u0438 \u043a\u0443\u0431\u0438\u0442\u043e\u0432<\/h4>\n<p>\u041f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 (<code>\"\"<\/code>) &#8212; \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u0431\u043b\u043e\u043a\u0430. \u041a\u043e\u0433\u0434\u0430 \u0430\u0433\u0435\u043d\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043a\u0443\u0431\u0438\u0442\u0430 \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435, \u0432\u0441\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0430 \u0434\u043e <code>separator<\/code> \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u043a\u0430\u043a \u043e\u0434\u0438\u043d \u0431\u043b\u043e\u043a \u044d\u0442\u043e\u0433\u043e \u0442\u0438\u043f\u0430.<\/p>\n<p>\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (<code>main.cycle<\/code>):<\/p>\n<pre><code>Mr.Green, #5fb85f | Data as &lt;condition&gt; | Aim: 1dir &gt; 0 ? floor =&gt;| lift:y(, ):floordir &lt; 0 ? lift:y(, ):last  -&gt; ::nothingfloor + dir =&gt; ::math =&gt; floor<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<ul>\n<li>\n<p><code>dir &gt; 0 ? ...<\/code> \u0438 <code>dir &lt; 0 ? ...<\/code> &#8212; \u043e\u0434\u0438\u043d \u0431\u043b\u043e\u043a <code>condition<\/code> (\u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 &#8212; \u0433\u0440\u0430\u043d\u0438\u0446\u0430).<\/p>\n<\/li>\n<li>\n<p><code>floor + dir =&gt; ...<\/code> &#8212; \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u043b\u043e\u043a <code>action<\/code> (\u043f\u043e\u0441\u043b\u0435 <code>separator<\/code>).<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u0433\u0438\u043a\u0443 \u0431\u0435\u0437 \u0441\u043a\u043e\u0431\u043e\u043a \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0442\u0438\u043f \u0432\u0441\u0435\u0439 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u043a\u0443\u0431\u0438\u0442.<\/p>\n<h4>4. \u041e\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>\u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0441\u044c\u044e &#8212; \u0441\u043f\u0438\u0441\u043a\u043e\u043c:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441<\/p>\n<\/th>\n<th>\n<p align=\"left\">sep \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0427\u0442\u043e<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>name:x(sep):i<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\"\"<\/code> (\u0441\u0438\u043c\u0432\u043e\u043b\u044b)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>name:y(sep):i<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\"\\n\"<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043e\u0441\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code>1, 2, 3 = liftlift:y(, ):last -&gt; ::nothing<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u2192 <code>lift = \"1, 2\"<\/code> (\u0443\u0434\u0430\u043b\u0451\u043d \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442).<\/p>\n<p><strong>\u041e\u0441\u0438<\/strong> &#8212; \u044d\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445\\\u043a\u0443\u0431\u0438\u0442\u0430.<\/p>\n<h4>5. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f (\u0432\u0438\u0434\u0430 ::name)<\/h4>\n<ul>\n<li>\n<p><code>::math<\/code> &#8212; \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 (<code>+ - * \/ % ^ == != &amp;&amp; ||<\/code>),<\/p>\n<\/li>\n<li>\n<p><code>::nothing<\/code> &#8212; \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 (<code>-&gt;<\/code> \u0443\u0434\u0430\u043b\u044f\u0435\u0442, <code>=&gt;<\/code> &#8212; no-op).<\/p>\n<\/li>\n<\/ul>\n<h3>\u0413\u0434\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c<\/h3>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/e39din\/True\" rel=\"noopener nofollow\"><code>github.com\/e39din\/True<\/code><\/a> &#8212; \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u0434\u043e\u043a\u0430\u043c\u0438 \u0438 \u043a\u043e\u0434\u043e\u043c<\/p>\n<\/li>\n<li>\n<p>\u0414\u0435\u043c\u043a\u0430:<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/7f\/f2\/03\/7ff203e52b1418aeaa35efe0ede7cd0f.jpg\" alt=\"\u0412\u0438\u0434\u0435\u043e Title\" width=\"1280\" height=\"720\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/7f\/f2\/03\/7ff203e52b1418aeaa35efe0ede7cd0f.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/7f\/f2\/03\/7ff203e52b1418aeaa35efe0ede7cd0f.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0412\u0438\u0434\u0435\u043e Title<\/figcaption><\/div>\n<\/figure>\n<\/li>\n<\/ul>\n<h3>\u0424\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f<\/h3>\n<ul>\n<li>\n<p><strong>\u041a\u0443\u0431\u0438\u0442 = \u0441\u0442\u0440\u043e\u043a\u0430<\/strong> &#8212; \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0447\u0438\u0441\u0442\u043e\u043c \u0432\u0438\u0434\u0435, \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043a\u0430\u043a \u0441 \u043d\u0438\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0430\u0433\u0435\u043d\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044c = \u0430\u0433\u0435\u043d\u0442 = \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/strong> &#8212; \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u0438 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0430\u043c\u0443 \u0441\u0435\u0431\u044f<\/strong> &#8212; \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>\u0426\u0435\u043f\u043e\u0447\u043a\u0438 \u043a\u0443\u0431\u0438\u0442\u043e\u0432<\/strong> &#8212; \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430 \u0431\u0435\u0437 \u0441\u043a\u043e\u0431\u043e\u043a.<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445<\/strong> &#8212; \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043a\u0430\u043a \u0441 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0444\u0438\u0433\u0443\u0440\u043e\u0439.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043a\u0430\u043a \u0446\u0438\u043a\u043b<\/strong> &#8212; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0446\u0438\u043a\u043b\u0438\u0447\u043d\u0430 (\u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439).<\/p>\n<\/li>\n<li>\n<p><code><strong>::name<\/strong><\/code> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0438\u043b\u0438 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f<\/strong> &#8212; \u0436\u0438\u0432\u0430\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c.<\/p>\n<\/li>\n<\/ul>\n<p><code>True v0.9.6. Simple v0.16.3.<\/code><\/p>\n<p><em>\u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u0432\u0430\u0448\u0435\u0439 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043a \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044e \ud83d\ude42<\/em><\/p>\n<\/div>\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:\/\/habr.com\/ru\/articles\/1103660\/\">https:\/\/habr.com\/ru\/articles\/1103660\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>True\u00a0&#8212; \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0433\u0434\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0435\u0441\u0442\u044c \u0446\u0438\u043a\u043b, \u0430 \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b &#8212; \u043b\u0435\u043d\u0442\u0430 \u043a\u0443\u0431\u0438\u0442\u043e\u0432 (\u0441\u0442\u0440\u043e\u043a). Simple\u00a0&#8212; \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u043d\u0430 Python 3 + Tkinter. \u041f\u0440\u043e\u0441\u0442\u043e\u0439, \u0431\u0435\u0437 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439.\u0421\u0442\u0430\u0442\u0443\u0441: \u041f\u0440\u043e\u0435\u043a\u0442 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439, \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 MVP. \u0412 \u043e\u0431\u0449\u0435\u043c \u0438 \u0446\u0435\u043b\u043e\u043c, True\u00a0&#8212; \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0441\u00a0\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0435\u0439, \u0438 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a\u00a0\u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u044f\u0437\u044b\u043a.\u0418\u0434\u0435\u044f\u0412 True\u00a0\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445(\u043e\u0434\u043d\u0438\u043c \u0438\u0437) \u0438 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f (\u0430\u0433\u0435\u043d\u0442\u0430).\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0434\u0435\u0441\u044c \u043b\u0435\u043d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a (\u044f \u043d\u0430\u0437\u044b\u0432\u0430\u044e \u0438\u0445 \u043a\u0443\u0431\u0438\u0442\u0430\u043c\u0438).\u00a0\u0410\u0433\u0435\u043d\u0442-\u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044c &#8212; \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b\u00a0(\u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430\u00a0.cycle). \u041e\u043d \u0438\u0434\u0451\u0442 \u043f\u043e \u043b\u0435\u043d\u0442\u0435 \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437, \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435\u00a0\u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043d\u0438\u0436\u0435\u0441\u0442\u043e\u044f\u0449\u0435\u0439\u00a0\u0438\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u00a0\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0435.\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445, \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.\u00a0\u041d\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0445 &#8212; \u0435\u0441\u0442\u044c \u043a\u0443\u0431\u0438\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0430\u0433\u0435\u043d\u0442 \u0447\u0438\u0442\u0430\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442.\u0410\u0433\u0435\u043d\u0442 &#8212; \u043d\u0435 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440, \u0430 \u0447\u0430\u0441\u0442\u044c \u0444\u0430\u0439\u043b\u0430\u00a0.cycle.\u00a0\u041e\u043d \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e: \u0441\u0442\u0440\u043e\u043a\u0430\u00a0Mr.Green, &#8230;\u00a0&#8212; \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u0430\u043a \u0438 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435, \u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435.\u041e\u0434\u043d\u0430 \u0438 \u0442\u0430 \u0436\u0435 \u043b\u043e\u0433\u0438\u043a\u0430 \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u044f\u0437\u044b\u043a\u0430\u0445True (main.cycle):Mr.Green, #5fb85f | Data as &lt;condition&gt; | Aim: 1\u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0439\u0441\u044f \u043d\u0430 \u043b\u0438\u0444\u0442\u0435 Mr.Green :)6 = max1 = floor1 = dir= liftdir &gt; 0 ? floor =&gt;| lift:y(, ):floordir &lt; 0 ? lift:y(, ):last  -&gt; ::nothingfloor == max ? -1 =&gt; dirfloor == 1 ? 1 =&gt; dirfloor + dir =&gt; ::math =&gt; floor(\u0417\u0434\u0435\u0441\u044c =&gt; &#8212; \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, -&gt; &#8212; \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435, ? &#8212; \u0443\u0441\u043b\u043e\u0432\u0438\u0435)Python:max_floor = 6floor = 1dir = 1lift = []while True:    if dir &gt; 0:        lift.append(floor)    if dir &lt; 0 and lift:        lift.pop()    if floor == max_floor:        dir = -1    if floor == 1:        dir = 1    floor = floor + dir    print(f&#187;floor={floor} dir={dir} lift={lift}&#187;)Lisp (Scheme):(define max-floor 6)(define floor 1)(define dir 1)(define lift &#8216;())(define (step)  (when (&gt; dir 0) (set! lift (append lift (list floor))))  (when (and (&lt; dir 0) (not (null? lift))) (set! lift (reverse (cdr (reverse lift)))))  (when (= floor max-floor) (set! dir -1))  (when (= floor 1) (set! dir 1))  (set! floor (+ floor dir))  (display (list floor dir lift)) (newline))(let loop () (step) (loop))Rust:fn main() {    let max_floor = 6;    let mut floor = 1;    let mut dir: i32 = 1;    let mut lift: Vec&lt;i32&gt; = Vec::new();    loop {        if dir &gt; 0 { lift.push(floor); }        if dir &lt; 0 { lift.pop(); }        if floor == max_floor { dir = -1; }        if floor == 1 { dir = 1; }        floor += dir;        println!(&#171;floor={} dir={} lift={:?}&#187;, floor, dir, lift);    }}Python, Lisp \u0438 Rust \u0437\u0434\u0435\u0441\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u0442\u0443 \u0436\u0435 \u043b\u043e\u0433\u0438\u043a\u0443, \u043d\u043e \u043d\u0435 \u0447\u0438\u0442\u0430\u044e\u0442 \u0438 \u043d\u0435 \u043c\u0435\u043d\u044f\u044e\u0442 \u0441\u0432\u043e\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434. True \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 &#8212; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0430\u043c\u043e\u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f: \u0430\u0433\u0435\u043d\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438, memory \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u0435\u043a\u0441\u0442\u0435, &lt;type&gt; \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f. \u042d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u0438\u0435 True \u043e\u0442 \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432: \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 = \u0434\u0430\u043d\u043d\u044b\u0435 + \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432 \u043e\u0434\u043d\u043e\u043c.\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0438\u0434\u0435\u04381. \u041a\u0443\u0431\u0438\u0442 = \u0441\u0442\u0440\u043e\u043a\u0430\u0421\u0442\u0440\u043e\u043a\u0430 &#8212; \u043a\u0443\u0431\u0438\u0442. \u0415\u0451 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044f (\u0430\u0433\u0435\u043d\u0442).\u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u0430\u0433\u0435\u043d\u0442:\u0447\u0438\u0442\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 target (\u0442\u0438\u043f, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435),\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 (\u0435\u0441\u043b\u0438 action \/ condition),\u043c\u0435\u043d\u044f\u0435\u0442 lines (flush \u043f\u0430\u043c\u044f\u0442\u0438),\u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0430\u0433\u0435\u043d\u0442\u0430 (Data as &lt;type&gt;).2. \u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044c = \u0430\u0433\u0435\u043d\u0442 = \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b\u0410\u0433\u0435\u043d\u0442 &#8212; \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 .cycle:Mr.Green, #5fb85f | Data as &lt;condition&gt; | Aim: 1Mr.Green &#8212; \u0438\u043c\u044f,#5fb85f &#8212; \u0446\u0432\u0435\u0442,Data as &lt;&#8230;&gt; &#8212; \u0442\u0438\u043f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0433\u0435\u043d\u0442 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043b (\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0448\u0430\u0433),Aim: 1 &#8212; \u0446\u0435\u043b\u044c, \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0446\u0435\u043b\u044c \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442\u043e\u0439 (\u0432 ROADMAP)3. \u0426\u0435\u043f\u043e\u0447\u043a\u0438 \u043a\u0443\u0431\u0438\u0442\u043e\u0432\u041f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 (&#171;&#187;) &#8212; \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u0431\u043b\u043e\u043a\u0430. \u041a\u043e\u0433\u0434\u0430 \u0430\u0433\u0435\u043d\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043a\u0443\u0431\u0438\u0442\u0430 \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435, \u0432\u0441\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0430 \u0434\u043e separator \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u043a\u0430\u043a \u043e\u0434\u0438\u043d \u0431\u043b\u043e\u043a \u044d\u0442\u043e\u0433\u043e \u0442\u0438\u043f\u0430.\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (main.cycle):Mr.Green, #5fb85f | Data as &lt;condition&gt; | Aim: 1dir &gt; 0 ? floor =&gt;| lift:y(, ):floordir &lt; 0 ? lift:y(, ):last  -&gt; ::nothingfloor + dir =&gt; ::math =&gt; floordir &gt; 0 ? &#8230; \u0438 dir &lt; 0 ? &#8230; &#8212; \u043e\u0434\u0438\u043d \u0431\u043b\u043e\u043a condition (\u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 &#8212; \u0433\u0440\u0430\u043d\u0438\u0446\u0430).floor + dir =&gt; &#8230; &#8212; \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u043b\u043e\u043a action (\u043f\u043e\u0441\u043b\u0435 separator).\u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u0433\u0438\u043a\u0443 \u0431\u0435\u0437 \u0441\u043a\u043e\u0431\u043e\u043a \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0442\u0438\u043f \u0432\u0441\u0435\u0439 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u043a\u0443\u0431\u0438\u0442.4. \u041e\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445\u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0441\u044c\u044e &#8212; \u0441\u043f\u0438\u0441\u043a\u043e\u043c:\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441sep \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\u0427\u0442\u043ename:x(sep):i&#187;&#187; (\u0441\u0438\u043c\u0432\u043e\u043b\u044b)\u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044cname:y(sep):i&#187;\\n&#187;\u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043e\u0441\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c.\u041f\u0440\u0438\u043c\u0435\u0440:1, 2, 3 = liftlift:y(, ):last -&gt; ::nothing\u2192 lift = &#171;1, 2&#187; (\u0443\u0434\u0430\u043b\u0451\u043d \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442).\u041e\u0441\u0438 &#8212; \u044d\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445\\\u043a\u0443\u0431\u0438\u0442\u0430.5. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f (\u0432\u0438\u0434\u0430 ::name)::math &#8212; \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 (+ &#8212; * \/ % ^ == != &amp;&amp; ||),::nothing &#8212; \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 (-&gt; \u0443\u0434\u0430\u043b\u044f\u0435\u0442, =&gt; &#8212; no-op).\u0413\u0434\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044cgithub.com\/e39din\/True &#8212; \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u0434\u043e\u043a\u0430\u043c\u0438 \u0438 \u043a\u043e\u0434\u043e\u043c\u0414\u0435\u043c\u043a\u0430:\u0412\u0438\u0434\u0435\u043e Title\u0424\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f\u041a\u0443\u0431\u0438\u0442 = \u0441\u0442\u0440\u043e\u043a\u0430 &#8212; \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0447\u0438\u0441\u0442\u043e\u043c \u0432\u0438\u0434\u0435, \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043a\u0430\u043a \u0441 \u043d\u0438\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0430\u0433\u0435\u043d\u0442.\u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044c = \u0430\u0433\u0435\u043d\u0442 = \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b &#8212; \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e.\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u0438 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0430\u043c\u0443 \u0441\u0435\u0431\u044f &#8212; \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432.\u0426\u0435\u043f\u043e\u0447\u043a\u0438 \u043a\u0443\u0431\u0438\u0442\u043e\u0432 &#8212; \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430 \u0431\u0435\u0437 \u0441\u043a\u043e\u0431\u043e\u043a.\u041e\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 &#8212; \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043a\u0430\u043a \u0441 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0444\u0438\u0433\u0443\u0440\u043e\u0439.\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043a\u0430\u043a \u0446\u0438\u043a\u043b &#8212; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0446\u0438\u043a\u043b\u0438\u0447\u043d\u0430 (\u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439).::name &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0438\u043b\u0438 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438.\u041d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f &#8212; \u0436\u0438\u0432\u0430\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c.True v0.9.6. Simple v0.16.3.\u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u0432\u0430\u0448\u0435\u0439 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043a \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044e :)\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1103660\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-501669","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/501669","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=501669"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/501669\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=501669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=501669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=501669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}