Find the index of a bin where a value between two bin value

Is there any related function in julia like numpy.digitize? Basically I want to find the index of a bin where a value between two bin value. Here is the example from numpy

>>> my_list = [3,2,56,4,32,4,7,88,4,3,4]
>>> bins = [0,20,40,60,80,100]
>>> np.digitize(my_list,bins)
array([1, 1, 3, 1, 2, 1, 1, 5, 1, 1, 1])
julia> searchsortedfirst.(Ref(bins), my_list)
11-element Array{Int64,1}:
 2
 2
 4
 2
 3
 2
 2
 6
 2
 2
 2
2 Likes

Thank you, this is exactly what I need