algorithmz 1.3.1

This is the corresponding implemenation of the python module of the same name.
Documentation
1
2
3
4
5
6
7
use algorithmz::stack::switch_pairs;

#[test]
fn test_switch_pairs() {
    let result = switch_pairs(vec![1,2,3,4,5,6]);
    assert_eq!(result, vec![2,1,4,3,6,5]);
}