Use immutable to avoid reversing the list and improve perf a little bit.
Merge pull request #141 from wajam/olivier-fix-perfo

Use immutable to avoid reversing the list and improve perf a little bit.