# Interpolate - deprecate getindex

**URL:** <https://discourse.julialang.org/t/interpolate-deprecate-getindex/15207>\
**Category:** General Usage\
**Created:** [September 20, 2018, 12:26am UTC](https://discourse.julialang.org/t/interpolate-deprecate-getindex/15207 "2018-09-20T00:26:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliauser](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Post date:** [September 20, 2018, 12:26am UTC](https://discourse.julialang.org/t/interpolate-deprecate-getindex/15207/1 "2018-09-20T00:26:42Z")

</div>

Hi,

I am interpolating two vectors and then evaluating the function at some other point. For example,

f = interpolate(a,b, Gridded(Linear()))

c = f[zz[1]]

where zz[1] is the first element of a vector.

I get this error about the line ’ c = f[zz[1]] ’

┌ Warning: `getindex(itp::AbstractInterpolation{T, N}, i::Vararg{Number, N}) where {T, N}` is deprecated, use `itp(i...)` instead.

What does it exactly mean? I don’t know what’s the suggestion about.

Thank you.

---

<div class="post-metadata">

**Author:** ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)\
**Post date:** [September 20, 2018, 12:34am UTC](https://discourse.julialang.org/t/interpolate-deprecate-getindex/15207/2 "2018-09-20T00:34:31Z")

</div>

It’s telling you to change from `f[zz[1]]` to `f(zz[1])`, since the interpolant `f` is better thought of as a function, not an array.
