New answers tagged

1 vote

Implementing an optimization algorithm in WL

I managed finally to make a faster and correct version for Jaya: ...
user avatar
2 votes

How to find the nearest string to another string in a mixed array

testarray = {0, 0, 0, "apple", 0, 0, 0, "pear", 0, 0, 0, 0, 0, "pineapple"} Extract positions of strings: ...
user avatar
  • 15k
3 votes

How to find the nearest string to another string in a mixed array

Just for fun, another option is to write your own distance function ...
user avatar
  • 108k
5 votes
Accepted

How to find the nearest string to another string in a mixed array

If you want to specify a string in advance and find the position of another string closest to the original, you could do something like this: ...
user avatar
  • 3,807

Top 50 recent answers are included