init(samples:) Creates a loader backed by the given array of samples. Declarationinit(samples: [Sample])