Jump to content

Recommended Posts

Posted (edited)

At first, the topic sounds frightening and you ask yourself: why do I need something like that?
At second glance, however, questions that can be solved effectively with set operations often appear here in the forum.
Questions like "all elements which occur in Array1 as well as in Array2" are examples for such problems.

This UDF therefore provides a set data type and brings the corresponding mathematical functions (union, intersection, difference, symmetric difference).
To stand out a bit from the crowd, the UDF offers a function which can directly solve complex set algebra expressions like A∪B-(B∩(A∪A)∪C).

If you detach yourself a bit from the mathematical theory and look at the practice, you will surely find a useful application for this.

How does it work? - Here is a big example:

  Reveal hidden contents

 

>>sourcecode and download on github<<

Edited by AspirinJunkie
Posted

Added this UDF to the wiki.

My UDFs and Tutorials:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...