tweag / topiary

https://topiary.tweag.io/
MIT License
579 stars 29 forks source link

fix: use slice patterns over iterator #704

Closed ErinvanderVeen closed 6 months ago

ErinvanderVeen commented 6 months ago

Slices for post_processing!

Description

This PR refactors our post_process_inner function to use slice pattern matching instead of the previous iterator based approach.

Motivation

Reason for this change it to make it easier to extend the match for patterns longer than just the first 2 atoms (which is something I wanted to do to fix #701).

Checklist

Checklist before merging: