Thanks to all for help! I also some relevant material here:
http://docs.julialang.org/en/release-0.4/manual/types/#constructing-nullable-objects http://docs.julialang.org/en/release-0.4/manual/types/#checking-if-a-nullable-object-has-a-value Particularly I needed isnull() function. -- Alex On Wednesday, January 6, 2016 at 11:01:48 PM UTC+1, Alex wrote: > > Hello, > > Let's say I write a function which checks if a given array/vector > contains a certain value and returns it's index. > > What should the function return if array doesn't contain the value? > > I read carefully the section "Nothingness and missing values": > > http://docs.julialang.org/en/latest/manual/faq/#nothingness-and-missing-values > > > > but I don't get from it what would be a correct "julian" solution. > > -- Alex >
