« first day (81 days earlier)      last day (2591 days later) » 

19:09
@LeakyNun @EriktheOutgolfer do you have a problem for me to do?
@cairdcoinheringaahing remove each element from itself: [3,1,4,1] becomes [[1,4,1],[3,4,1],[3,1,1],[3,1,4]]
just try to golf it
is there a builtin to remove a value at a specific index in a list e.g. [3, 1] 1 => [1]?
I don't think so
19:42
Did I just send in a bunch of people from TNB?
@LeakyNun why isn't this removing the duplicate?
@cairdcoinheringaahing what do you mean?
what is your code supposed to do?
what is "removing the duplicate"?
The two bits either side of the generate 2 lists that have 1 duplicate between them, but for some reason doesn't remove it
2 mins ago, by Leaky Nun
what is your code supposed to do?
what is the intended output?
19:49
[[1, 3], [1, 4], [1, 1]]
grr this is harder than I thought it was
ooh let me try
@cairdcoinheringaahing I still don't know what the code is supposed to do
@LeakyNun I have ³ḣ;³ṫ which is the component that's meant to take n element from the front and the elements from the end starting at n, but I have no idea what it does. I did some tests with hardcoded numbers to try to get it to work, but it's not giving me anything useful.
ok i have no idea how to approach it in jelly currently
19:58
@LeakyNun it is supposed to take the results of this and this and produce the list with duplicates removed
Like for example, ³ḣ3;³ṫ3 with [1,2,3,4,5] gives [3,1,2,3,4,5]. Do you know how it's behaving exactly? @LeakyNun
@cairdcoinheringaahing you need to group the last four characters...
@HyperNeutrino you need to group the last three characters...
Yeah I had that problem last time, and it wasn't really solved. Rather than just telling me to read over the docs, can you actually give me the answer this time, please?
@cairdcoinheringaahing could you tell me exactly how the inputs of the program is intended to become [[1,3],[1,4],[1,1]]?
oh like ³ḣ;³ṫ$?
20:08
The first part creates [1...len(y)] for the list, then compares with the number to produce [0, 1, 0, 0] in this case and then zips with the original list. The second part creates an array of 1s the length of the list, then zips that with the original list. The is supposed to remove the element in the first zip that is also in the second.
For example [3, 1, 4, 1] 2 => [[0, 3], [1, 1], [0, 4], [0, 1]] in the first part and [[1, 3], [1, 1], [1, 4], [0, 1]] in the second. The then makes it [[1,3],[1,4],[1,1]]
I'm overthinking this, aren't I?
@LeakyNun this
@HyperNeutrino maybe
@cairdcoinheringaahing this?
the removes both copies of the [1,1]
@LeakyNun it should be the other way round (see the link I gave above)
@LeakyNun but never mind I figured it out
alright
this has been bugging me since I applied: given a list with 2 values and a dyad, how can you apply the dyad to the values? e.g. [2, 3] and × => 6?
Reduce /
In this specific example, you could do P
But in general, you want <dyad>/
20:21
@DJMcMayhem thanks!
Sa quick
No problem!
20:37
I made Jelly segfault tio.run/…
oh nice
@cairdcoinheringaahing the last line is executed...
@LeakyNun yeah...
nothing else is called
@totallyhuman that's what does
@LeakyNun how do i make this execute over the list created by J (like in the header section)?
@totallyhuman how's your attempt going?
20:45
i didn;'t start
47 mins ago, by totallyhuman
> ooh let me try
@LeakyNun Does it have to keep order?
@LeakyNun what is the Jelly equivalent of for i in range(len(x)): dyad(x, i) in Python?
Leaky's left :(
@DJMcMayhem according to this, you've never done a Jelly program before
That's funny
21:19
@LeakyNun @EriktheOutgolfer I'm hopelessly stuck, maybe one of you could help me.
I'm trying to write a link that will remove a certain element. I've got this: Try it online!
And it removes the n-1'th element from the input list, here n is 2
But if I try to call it like this: Try it online!
I get completely different results
 
2 hours later…
23:29
Calling it as a monad is giving it 2 as both the left and the right argument.
It needs to be called as a dyad because it takes two arguments; the list, and the index.
Otherwise though, your idea is quite nice; I didn't think of removing the index that way (I thought of using head + tail and leaving out an element, which didn't work too well). :)
@LeakyNun Jelly, 12 bytes: spoiler
11 bytes spoiler
@HyperNeutrino But it still doesn't work if I call it as a Dyad
@HyperNeutrino That gives the same result no matter what argument I give it
._. well lemme go look at that again then rip
I spent like an hour on this BTW
23:44
o rip
there's a simpler way btw
sorry I have to go now, tell me if you figure it out and if not I'll look back at it when I get back. good luck! o/

« first day (81 days earlier)      last day (2591 days later) »