1. Qlik Sense for Windows Help, "Generic": This official documentation describes the Generic prefix. It states, "The generic prefix can also be used to transform a generic table back into a crosstable." The example provided in the documentation mirrors the transformation required by the question.
Reference: Qlik Sense for Windows Help, Scripting -> Script syntax and chart functions -> Script regular statements -> Load -> Prefixes -> Generic.
2. Qlik Sense for Windows Help, "HierarchyBelongsTo": This document explains that the HierarchyBelongsTo prefix is used to load an adjacency list table and transform it into a table suitable for a hierarchy.
Reference: Qlik Sense for Windows Help, Scripting -> Script syntax and chart functions -> Script regular statements -> Load -> Prefixes -> HierarchyBelongsTo.
3. Qlik Sense for Windows Help, "Peek()": This page defines Peek() as an inter-record function that returns the value of a field in a table for a row that has already been loaded. It is not a table-level transformation prefix.
Reference: Qlik Sense for Windows Help, Scripting -> Script syntax and chart functions -> Script functions -> Inter-record functions -> Peek().