fn is_strict_prefix(prefix: &[usize], full: &[usize]) -> boolExpand description
Check if prefix is a strict prefix of full
A strict prefix means:
prefixis shorter thanfull- All elements of
prefixmatch the corresponding elements infull
Examples:
- is_strict_prefix([0], [0, 1]) = true
- is_strict_prefix([], [0]) = true
- is_strict_prefix([0], [0]) = false (equal, not strict)
- is_strict_prefix([0], [1]) = false (not a prefix)