allow to get no more than N elements from a list
very initial