примеру:
http://www.typescriptlang.org/play/#code/C4TwDgpgBAMg9gOwOYwJbAgJwIYBsoC8UA5AILFQA+JAQhdcQML0kAiLxA6sQLABQ-UJCgBlOAFsIAFXAQAPFIB8hKAG8AzhIgAuKFIC+g2VADiEBFlQBjGZAXKiq-lBdQA+kJ2itt+UueuAPSBUAB04VDicJgQ-IYCCVaI6sBQ2JiYKgDaxHAA1sQANCT5AIwUhbl5AExFJXkAzHVVACzN+QCsxAC6-H18SQgpUDHqAK64qUTpmKHi2GByZhaY1r5y8MhoGDi4iooAFOgQ4oTKx6fY6mkIIACUUMFQAPzP-fyjE6lPSKgAbhB1LplpYbLINogUMddoosr0Ek9UFAAO7YBCpLIg1ZguxkYiKYpYtbg4h0Ammcyg9ZMfHFcKhIk4+SbKE7PCw7rdIA
да, минутку
увы, я не до конца понимаю новую постановку задачи. Надеюсь, что это чем-то поможет. http://www.typescriptlang.org/play/#code/PTAEDMCcHsFtQC4GcC0DrQDYCMCmmEBYAKAQE8AHXUASQDsFdIlcBjBAeXAB4BVUXAA9GdACZJQAQzpkAfKAC8oABT8hI8aACudANZ1oAdzqgA-Ct0AuULwCUi+QDdoAS1GhrdXI6b31uMQllZStQFzpwJlp7BSdXUXtzGg9QLx9IEnIqUAAZSSQEPgFhAM1pOUVaBiYWdi4i-0DtPQNjMxVBazsHUGc3FLSmeUbNZU6wiKiABRi4-vMpge8mTMpqKchcKjFuABVijQlygG0AXQAaUABBA9KjmXklYIALXElRayvLgDpfyUgAOZIay7WZSGR+EpNYK-b7-IHWcKRSA2MHlRI2FK7VbZXZaCiYXD1NRQsoPSoAfTxBKJPF4w1JEiRUQAGu02Z5lpAANwkHHUKn4wnEy67ABytyaJ1OlTOlzyBX4SgVhXpj1AAG8SKAdaAAAzWQU0+oAUUErEwWlEuD48vyCHplw2W1KezFdsVslk521uoAjCD3SQAL7HUDHXgykYSY6DSAy8x+lJ60CnPnEED83LQOgAnIuRiQSSYSoAciupdAAB9QKWAEKVmulgDCjdrABE26WAOql9NZagAZTguF2az26o1SBHIODWYA4gEmC5WGOqBPKvto+CyO0tcRdaAKQPrMPYKPx7tZL6dSBQLDQLBoJsQ0t0rziFmAFqboW07iLl4kArmuNo5DmeYFkwxZeh+JB3qwOYFFIkAokoxyltAuilpcmG6H6lbnHhABMOG1lhADMZF4QALNRWEAKylmmGZgIhdDIZsSBaAQlT-JA3ywJIFAAUuwGruO4G5vmhYwbIyhQfAsRhIw8D5Du9h3qYpjpneXE8QgoB3gCLg+MCoCAcuEnrlJkGyZgshnLpYAuKAhjSIZxyWeJoHcOWpbehZYkgeO9YBZc3kheuLYBacQA
Обсуждают сегодня