# [Perl 6], 84 bytes

<!-- language-all: lang-perl6 -->

    {(($!={$/=[1..11];:10[map {|splice $/,$_,1},[R,] .polymod(1..10)]})($_+1)-$!($_))/9}

[Try it online!][TIO-jocqrrhq]

[Perl 6]: https://github.com/nxadm/rakudo-pkg
[TIO-jocqrrhq]: https://tio.run/##NYrRCoIwGEZf5RdGbLTmflebK3yJbkVESiFQHHoly2dfW9TNOd@Bz/XLqMO0wWGAKnhKSVZ5klc1CoHY3K4o66lz4N@rG1@PHkjOSctx5/WdNyDcPG7T/KTpLlmzM0raI7ITyeJgLLd7WLsNhlQwzAsUigOi5WASLlJFnqVKoXRRmmiU8osf/4pW1qI2tgwf "Perl 6 – Try It Online"

Calculates the elements directly.