I would get a response of ["foo","bar","baz"]. The result does seem to work in a simple scenario but if I precede this call with a call to Arrays::find($myArray, function () {...}) then the results of the subsequent pluck() produce inconsistent results.
I don't fully understand this inconsistency yet -- although I'm guessing it may come from a false assumption about where the array pointer is starting -- in any event and for what it's worth here is the resultset I get from pluck after the find operation:
I have a common data structure that looks like:
I would have thought that by typing:
I would get a response of
["foo","bar","baz"]
. The result does seem to work in a simple scenario but if I precede this call with a call toArrays::find($myArray, function () {...})
then the results of the subsequentpluck()
produce inconsistent results.I don't fully understand this inconsistency yet -- although I'm guessing it may come from a false assumption about where the array pointer is starting -- in any event and for what it's worth here is the resultset I get from
pluck
after thefind
operation: