1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/// Given the deck of cards and the new position of each cards, return the new deck with new arrangement.
///
/// # Examples
/// ```
/// use standard_card::deck::arrange;
///
/// let cards = vec![98306, 164099, 295429];
/// let positions: [usize; 3] = [0, 2, 1];
///
/// let arrangement = arrange(&cards, &positions);
///
/// assert_eq!(arrangement, [98306, 295429, 164099]);
/// ```