« first day (426 days earlier)      last day (1065 days later) » 

12:04 AM
@hyper-neutrino well I took the mold function straight from Jelly
so it should work if it works in jelly
 
yeah but your lists are weird
 
they actually aren't
 
12:41 AM
well
then idk
time to go check source code
and local test shit
 
It works now
But not the group by function
Turns out itertools groupby isn't as nice as I thought it would be
 
1:29 AM
@hyper-neutrino what would you suggest instead?
 
1:51 AM
well i don't think that function necessarily needs to be removed
i would like a split-before though
 
@hyper-neutrino example?
 
[1, 2, 3, 4, 3, 5, 6, 7, 2, 3, 4], 3 => [1, 2], [3, 4], [3, 5, 6, 7, 2], [3, 4]
 
@hyper-neutrino any other golfing languages that have this?
 
2:23 AM
not sure
jelly has partition before the indices in (right) and do not discard borders
but not exactly the same
 
2:53 AM
@Razetime @user @AaronMiller @hyper-neutrino @Underslash @UnrelatedString @Wasif @Ausername @AviFS chat.stackexchange.com/transcript/message/58362018#58362018
(avi, I'm just curious in what you think of the usefulness of each function)
 
as soon as someone beats me to the matrix straight line challenge :P
 
this challenge makes me big sad
 
it feels like it should be easy
 
3:07 AM
@lyxal looks good. What does val mran?
Also, is scl a number/string?
 
@user non-function
@user scalar
 
Oh, just a number
 
string or number
 
Oh
 
3:28 AM
only thing so far is that I don't like × being multiply, but it makes sense
 
3:43 AM
ooh, also maybe distinguish a list of any length from a list of a specific length, because for example, wrap on the last value has return type [any] while uniquified has return type [any] despite wrap returning a fixed-length array and uniquified returning a variable length array
3rd thing, Ṡ should be described as a range to keep everything consistent and to make it easier to find
 
@Underslash good idea. I must confess that I copy pasted the description straight from Jelly, so there were bound to be some inconsistencies.
 
allg, thats what reviewing is for
 
@Underslash how about [any,] for len 1?
or maybe [any...] for variable length
 
i think the second one would be good
makes it very clear
 
okay then
sounds like a plan
except I just realised that basically every occurrence of [<type>] is for variable length
perhaps wrap last element should just be any instead
 
3:52 AM
hmm
what about [*any] for variable length?
 
1 min ago, by lyxal
except I just realised that basically every occurrence of [<type>] is for variable length
that means almost every instance of [any], [str], [num] would need to be updated
 
yeah, but its only 1 character tbf
like, i can do that really quick if you want me to, it would take like 2 seconds
 
No it's fine
I've done it anyway
 
 
11 hours later…
3:26 PM
Ǎ and E both do 2 ** a when given a number.
 
3:59 PM
I am currently trying to count up forver in vyxal
i think ∞ is usefull
how to loop through a list?
 
map lambda probably
or just any form of map
 
why doesn't ∞(a|a,) work? should work, after the documentation, right?
iterating through ∞ and the variable with the value stored is a
i'll try map
 
i'm not familiar with what () does
oh it's just a for loop
lambda map is probably shorter anyway, but...
 
@math If you want to use a for loop, you could use ∞(n,. n is the default variable that a for loop uses. If you define your own variable, like a, then you have to use normal variable syntax, such as ∞(a|←a,). In your code, a is acting as the any command.
 
@lyxal ∞ = list of all positive integers, starting at 0
er
0 isn't a positive integer
 
4:11 PM
@hyper-neutrino ¯\_(ツ)_/¯
@math HN is right that map would be shorter, but mapping a print over generators doesn't work to well right now, so it becomes a bit of a mess: Try it Online!
 
oh right that lol
 
@AaronMiller Thanks
in the map, why are lines in the output?
is it a bug?
@hyper-neutrino ... or is it?
 
alright, opened a PR to fix the docs
 
@math Yeah, that's a bug. I've submitted an issue for it, but it's going to take some time to fix, so for now, it's just broken.
 

« first day (426 days earlier)      last day (1065 days later) »