Closed garlic0x1 closed 1 month ago
Solves https://github.com/coalton-lang/coalton/issues/1144
COALTON-USER> (coalton (coalton-library/seq:make 1 2 3)) #.(SEQ 1 2 3)
To avoid the methods defined here being used, I short-circuited them by using an :around method.
:around
Regarding the suggested output #.(seq:make 1 2 3), I replaced seq:make with just seq to match the implementations for Queue and Cell.
#.(seq:make 1 2 3)
seq:make
seq
There will be nits, I will resolve them tomorrow :)
Now it prints like this:
COALTON-USER> (coalton (coalton-library/seq:make 1 2)) #<SEQ 1 2>
squash it all, and i'll merge.
great contribution and sleuthing! thanks!
Solves https://github.com/coalton-lang/coalton/issues/1144
To avoid the methods defined here being used, I short-circuited them by using an
:around
method.Regarding the suggested output
#.(seq:make 1 2 3)
, I replacedseq:make
with justseq
to match the implementations for Queue and Cell.There will be nits, I will resolve them tomorrow :)