tweag / topiary

https://topiary.tweag.io/
MIT License
511 stars 17 forks source link

fix: use slice patterns over iterator #704

Closed ErinvanderVeen closed 1 month ago

ErinvanderVeen commented 2 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: