Skip to content

Extra Hset functions#8

Merged
backtracking merged 4 commits intobacktracking:masterfrom
dlesbre:hset-functions
Jan 28, 2024
Merged

Extra Hset functions#8
backtracking merged 4 commits intobacktracking:masterfrom
dlesbre:hset-functions

Conversation

@dlesbre
Copy link
Copy Markdown
Contributor

@dlesbre dlesbre commented Jun 13, 2023

Here are most of the missing function between Hset and Set.S. The notable exceptions are to_seq_rev and to_seq_from since the only reasonable way I could implement them is convert to list, then sort, then convert to seq...
I feel this bypasses the point of these function (provide efficient iterators). I did include to_seq but with the caveat that the result isn't sorted.

To be honest the order on hash consed terms is arbitrary anyway so I don't see anyone using these. Its also why I added a custom find_any an find_any_opt functions, as these seem more useful and can me made a bit faster.

@dlesbre dlesbre mentioned this pull request Jun 13, 2023
@dlesbre
Copy link
Copy Markdown
Contributor Author

dlesbre commented Jun 26, 2023

@backtracking any review for this ?

@backtracking backtracking merged commit 4285c88 into backtracking:master Jan 28, 2024
@backtracking
Copy link
Copy Markdown
Owner

Thanks @dlesbre for the patch and apologies for the delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants