Flt { public static float[] sliceOf( float[] array, int startIndex, int endIndex ) { return slc(array, startIndex, endIndex); }  static float[] grow( float[] array, final int size ); static float[] grow( float[] array ); static float[] shrink( float[] array, int size ); static float[] compact( float[] array ); static float[] arrayOfFloat( final int size ); static float[] array( final float... array ); static int lengthOf( float[] array ); static int len( float[] array ); static float atIndex( final float[] array, final int index ); static float idx( final float[] array, final int index ); static void atIndex( final float[] array, int index, float value ); static void idx( final float[] array, int index, float value ); static float[] sliceOf( float[] array, int startIndex, int endIndex ); static float[] slc( float[] array, int startIndex, int endIndex ); static float[] sliceOf( float[] array, int startIndex ); static float[] slc( float[] array, int startIndex ); static float[] endOfSlice( float[] array, int endIndex ); static float[] slcEnd( float[] array, int endIndex ); static boolean in( float value, float[] array ); static float[] copy( float[] array ); static float[] add( float[] array, float v ); static float[] add( float[] array, float[] array2 ); static float[] insert( final float[] array, final int idx, final float v ); static float[] insert( final float[] array, final int fromIndex, final float[] values ); static boolean equalsOrDie(float[] expected, float[] got); static boolean equals(float[] expected, float[] got); static double reduceBy( final float[] array, ReduceBy reduceBy ); static double reduceBy( final float[] array, final int start, final int length, ReduceBy reduceBy ); static double reduceBy( final float[] array, final int length, ReduceBy reduceBy ); static double reduceBy( final float[] array, T object ); static double reduceBy( final float[] array, T object, String methodName ); static double reduceBy( final float[] array,  int length,
                                 Object object ); static double reduceBy( final float[] array,  int length,
                                 Object function, String functionName ); static double reduceBy( final float[] array, int start, int length,
                                 Object object ); static boolean equalsOrDie(float expected, float got); static boolean equals(float expected, float got); static double sum( float[] values ); static float sum( float[] values,  int length ); static float sum( float[] values, int start, int length ); static double bigSum( float[] values ); static double bigSum( float[] values,  int length ); static double bigSum( float[] values, int start, int length ); static float max( float[] values, final int start, final int length ); static float max( float[] values ); static float max( float[] values, int length ); static float min( float[] values, final int start, final int length ); static float min( float[] values ); static float min( float[] values, int length ); static float mean( float[] values, final int start, final int length ); static float mean( float[] values, final int length ); static float mean( float[] values ); static float variance(float[] values, final int start, final int length); static double varianceDouble(float[] values, final int start, final int length); static float variance(float[] values,  final int length); static float variance(float[] values); static float standardDeviation(float[] values, final int start, final int length); static float standardDeviation(float[] values,  final int length); static float standardDeviation(float[] values); static float median(float[] values, final int start, final int length); static float median(float[] values, final int length); static float median(float[] values); static boolean equals(int start, int end, float[] expected, float[] got); static int hashCode(float array[]); static int hashCode(int start, int end, float array[]);  }
@Test public void testSliceOf() { float[] array = Flt.array(0f, 1f, 2f, 3f, 4f, 5f, 6f); float[] array2 = Flt.sliceOf(array, 0, 100); puts(array, array2); Flt.equalsOrDie(array, array2); }