guys can someone explain what ([head, ...[headTail, ...tailTail]]) in the input of this link solution is doing? I can\'t comment and ask the writer due to low
([head, ...[headTail, ...tailTail]])