Skip to main content

Timeline for Get duplicates from an array

Current License: CC BY-SA 4.0

7 events
when toggle format what by license comment
Jun 7, 2018 at 7:45 comment added Kevin Cruijssen @Kaldo Yeah, I was afraid removing the empty items would be at least 2 bytes. And I doubt any of the other parts can be shorter with this approach. Ah well, will post it as an alternative solution in that case.
Jun 7, 2018 at 7:37 comment added user2956892 @KevinCruijssen That's an interesting take. I'm not quite sure it's a valid output (none of the other answers are leaving empty items in the array). You could add õK at the end to remove those empty arrays (only solution AFAIK to remove empty items from an array) but you'd end up at 8 bytes as well.
Jun 6, 2018 at 15:02 comment added Kevin Cruijssen Not sure if it's a valid output format with the empty item present, but 6 bytes. Maybe you see something to golf or pretty-print it and still save bytes?
Jun 6, 2018 at 11:37 comment added AJFaraday I'm beginning to understand how you could actually learn such a language ;)
Jun 6, 2018 at 11:36 comment added user2956892 @AJFaraday I left the -d argument by accident but it's an amazing tool to understand what happens on the stack when you're learning 05AB1E :-)
Jun 6, 2018 at 11:35 comment added AJFaraday Wow! That output really takes you through the stages of the process.
Jun 6, 2018 at 11:34 history answered user2956892 CC BY-SA 4.0