Yurii Rashkovskii

Results 214 comments of Yurii Rashkovskii

any chance for this get merged in?

Hi Dan, Have you come to any solution for this (short of coming up with a custom filtering function)?

Thank you! I was thinking of `int` to clarify that the comparisons are fast and cheap. Strings may also get abused to generate runtime identifiers.

I've also updated this PR to pass the tests

Thank you. I think my main difficulty lies in the fact that in my real-world, non-reduced version of this, the pushback list makes a lot of sense because the "spillover"...

My real case: https://github.com/yrashk/aoc2023/blob/master/logtalk/1/aoc23_1.lgt The diff below simplifies the code by using whole pushback lists. Except that it doesn't work in Logtalk (but it does in SWI). I wonder if...

For reference, here's my example working with the SWI Prolog bit: https://github.com/yrashk/aoc2023/commit/6dd61c96cbbce60a15beb51feb74304c0492c7fe

Thank you so much for your solution! It's great to see that it is much faster. The only concern I have is the manual overlap extraction in the pushback lists....

> Btw, write instead: > > ```logtalk > % the following directive would usually be found in a loader file > :- use_module(library(pure_input), []). > > > :- object(aoc23_1). >...

I've included your implementation in the repo: https://github.com/yrashk/aoc2023/commit/c52031a62e0bdaace90ba3253bac5c7f446efb6a