fkoh111 / fkoh111utils

Assorted utils :wrench: :construction_worker:
GNU Lesser General Public License v3.0
0 stars 0 forks source link

feature/test_for_names #124

Closed fkoh111 closed 4 years ago

fkoh111 commented 4 years ago

Make function that takes two vectors, and compares them. If an element is present in vector foo that isn't present in vector bar, store that element in either a surplus container vector or a missing container vector. The surplus and missing vector will eventually be collected and returned.

See following for inspiration: https://www.geeksforgeeks.org/check-if-two-arrays-are-equal-or-not/

fkoh111 commented 4 years ago

Potentially don't return both missing and surplus elements in an object. Instead return based on a passed boolean upon invocation.