Applies the given function to each and every value in the vector. This method should be overloaded for a serious implementation. @param f the single variable function to apply
(Function f)
| 698 | * @param f the single variable function to apply |
| 699 | */ |
| 700 | public void applyFunction(Function f) |
| 701 | { |
| 702 | for(int i = 0; i < length(); i++) |
| 703 | set(i, f.f(get(i))); |
| 704 | } |
| 705 | |
| 706 | /** |
| 707 | * Applies the given function to each and every value in the vector. |