Get Zenlisp running too https://www.t3x.org/zsp/index.html and just have a look on how the (intersection) function it's defined.
Now you'll get things in a much easier way, for both programming and math.