Implement List.init

Signed-off-by: Alexander Berntsen <alexander@plaimi.net>