MOZI-AI / annotation-scheme

Human Gene annotation service backend
GNU General Public License v3.0
3 stars 4 forks source link

Remove use of flatten. #182

Closed linas closed 4 years ago

linas commented 4 years ago

A purely cosmetic change. Untested. I think this is correct, but I have not tested this.

rekado commented 4 years ago

I'm generally in favour of removing custom flatten procedures (and I've done so in past contributions to this project). One thing to pay attention to is that flatten can be recursive, whereas append-map only deals with lists of lists --- not deeply nested lists and also not plain lists.

linas commented 4 years ago

In this case, find-similar-gene returns an ordinary list, and not a tree, so the removal seems appropriate.