use ElementType!R1 instead of typeof(inputRange.front)