pub fn take(
layout: &Layout,
counts: &[(usize, Count)],
take: bool,
) -> Result<Plan, Error>Expand description
Takes count items along axis for each (axis, count) in counts, at the lengths that taken gives, or drops them when take is false. A negative count works from the end. A take past an end reads fill there. A later count for the same axis replaces an earlier one.