G
G
Gregory2562021-07-23 14:49:23
C++ / C#
Gregory256, 2021-07-23 14:49:23

How to check for matching colors from an array?

How can I check the matching of colors from two arrays?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
s7on1250, 2021-07-23
@Gregory256

If you want to compare colors, you can do this:
color1.Equals(colour2). This will return a boolean value

I
Ilya, 2021-07-23
@sarapinit

a1.ToHashSet().SetEquals(a2)
But this is only true if repeating colors are considered the same value

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question