Are you ready for Perl6?
github.com
github.com
So if $bin contained a list like [42, "foo", 7], we would get out a list of pairs
1 => "42", 1 => "foo", 1 => "7"
Another way to write it would have been something along the lines of ($bin // Empty).map({ 1 => .Str }).slip
I did _not_ set out to write the code as obscurely as possible - it just happened 'naturally' ;)