Rust Taskbook Level 9.2

Задание 1

Write a program that will generate the following string:

rust"-x-xx-xxx-xx-x-"
Задание 2

Two arrays are given:

rustint arr1: [i8: 4] = [1, 2, 3, 4];
int arr2: [i8: 4] = [5, 6, 7, 8];

Merge their elements pairwise into the following two-dimensional array:

rustint[][] {
  [1, 5],
  [2, 6],
  [3, 7],
  [4, 8}
}
Задание 3

Given some URL:

rustlet url: &str = "http://test.com/dir1/dir2/dir3/page.html";

Get the page name from it:

rust"page.html"
Задание 4

Given an array, the subarrays of which contain numbers:

rust[
  [1, 2, 3],
  [4, 5, 6],
  [7, 8, 9],
]

Merge the elements of this array into numbers:

rust[123, 456, 789]