It is said that Yamamoto had observed a "scene" of a monkey reaching out with stick to retrieve a fruit from a tree. He then had the idea to use a longer weapon to "reach out".
The anecdote describes Yamamoto's inspiration for developing a long-range weapon based on observing a monkey using a stick to retrieve fruit from a tree.