« first day (88 days earlier)      last day (2584 days later) » 

20:00
and \
is overwritting I thinl
Why Logical AND?
Just use concatenation
to add to end
ooooo
brb in 10 mins
I found the solution for an extra 2 bytes and replacing one byte.
Ḷ”$ẋ;”\Y
concats to end on the whole thing not each element
Yes. Now what do you do to make something happen to each element of a list?
20:02
multiply?
No. Remember the map quick we were talking about?
how do I use € to map
You put it after the atom you want to affect.
That means you want to map over ;”\ .
20:03
Ḷ”$ẋ€;”\Y
However, do note that that's 2 links, so you need to combine the two links into one chain and map over that single chain, hence the second byte used.
@NoahCristino No. You don't want to map the repeat since that's fine already. You want to map over the concat part.
how do I map over?
@HyperNeutrino
brb
OK. So, during parsing, a Jelly program is converted to links which are then chained together. The links are put onto a stack of links (functions, essentially). When a quick is encountered, it will pop off a number of links and push a new link with a different function. So, putting after a link will remove that link and make its function to apply the original link's function to each element in whatever iterable it receives as an argument.
20:18
back
what are links exactly?
A link is an atom or a group of atoms that have been put together.
ok
so
what does mapping do?
just like a loop over an array?
@HyperNeutrino
Let's say you have concat. If you're given ["a", "b"] as input and you concat("c"), you get ["a", "b", "c"]. However, if you map over concat("c"), you get ["ac", "bc"] because you're applying to every element in the array.
ok
how do I map over concat?
You put the map quick after the link.
20:23
after what link?
@HyperNeutrino
Firstly, you are mapping over concat("\\"). Since that means you have a dyad (concat) followed by a nilad (string literal), you need to combine them into a monad. How do you combine two links into a monad?
shouldn't I map like this
Ḷ€;”\”$ẋY
Uh, no.
That way you're taking the range, concatenating a string to each number, and then repeating the string. That won't work.
anyway brb
20:26
µ? @HyperNeutrino
hi @DigitalTrauma
can you help me?
@StepHen I need help
@NoahCristino can I help?
What's the challenge?
the diagnol line
I need to map and concat a \ to the end of the array
@cairdcoinheringaahing
@NoahCristino ok. So what's the command for concat?
20:38
;
and map is €
I have €;”\
but I don't know where to put it @cairdcoinheringaahing
@NoahCristino how is used? Where do you place it when working on a dyad?
<dyad>€
@NoahCristino exactly, so where should you move the ?
but what dyad do I put it after?
if I put after ẋ
@NoahCristino with the link you gave me, and €;”\ , you have all the commands you need.
20:40
it uses that as the right arg
@cairdcoinheringaahing
@NoahCristino what command should you be mapping?
;”\
oh
;”\€?
@cairdcoinheringaahing
@NoahCristino what's the dyad in ;”\ ?
none
; is a monad
@NoahCristino is it?
@NoahCristino so if ; is the dyad, where do you place the ?
4 mins ago, by Noah Cristino
<dyad>€
before
the dyad before
i mean
@NoahCristino yes.
20:44
but it doesn't output anythinggg
TypeError: <lambda>() missing 1 required positional argument: 'x'
@NoahCristino because isn't in front of the dyad, its in front of the nilad
@NoahCristino that's the wrong dyad. What are the dyads in the code?
the ; is the dyad
@NoahCristino so if the dyad goes before the , where does the go?
@NoahCristino good. Now, can you remove 4 bytes?
@NoahCristino what takes up a lot of bytes in the program?
the strings
@NoahCristino so lets try to remove them
20:50
how?
What's the first string?
@NoahCristino or ' ' in python?
@NoahCristino so look for ' ' in the atoms page
20:51
k
Ḷ⁶ẋ;€”\Y
@NoahCristino so that's one out of 4 gone. Lets take a look at the other string.
Does it have to be a \?
@NoahCristino what 1 digit things can it be?
20:53
any thing
thats not a space
@NoahCristino try replacing ”\ with various characters, see what works
I can do this Ḷ⁶ẋ;€ƈY
and put \ in the input
@NoahCristino that's not allowed.
@NoahCristino it can only take 1 input
Rules of the challenge
20:56
aw
you mean characters
without ”
infront
@NoahCristino do I?
idk do you?
What's the current challenge?
@HyperNeutrino diagonal line
20:59
@NoahCristino just try replacing ”\ with characters on your keyboard
See what works
@NoahCristino single character, sorry. But close
why does that output -16?
. outputs 0.5
Because ~ means bitwise invert which is -1 - thing
@NoahCristino ~n is the same as -n-1
. => 0.5, - => -1
21:02
Also this ;€”\ trick is nice I forgot about it lol
@HyperNeutrino markdown hates this challenge
I can't find anything
Yeah especially since \\ doesn't isn't even an escape
@NoahCristino Think about it. . did 0.5 which is a literal. What one-character literals are there?
@NoahCristino what does that produce?
21:04
®
That's not a literal.
but ® produces 0
I mean, it works in this case, but that's not what it's meant to do.
@NoahCristino good. Now to golf 2 more bytes. On a separate note, I have to go now, bye!
21:06
2 more chars...
bye
now: Draw an X with odd-length diagonals, using space as padding and a consistent non-whitespace char as the X. You won't have to handle even lengths. Example for f(7):
X X
X X
X X
X
X X
X X
X X
... code-block formatting
ik
that's hard
im going to try an easier one first
no just put 4 spaces before each line
21:08
I mean a new challenge
oh you meant the challenge is hard
ya
the square is easier
What square
Draw a square with side length N
21:09
how do I make 2d arrays?
@HyperNeutrino
You wrap an array into an array and repeat it
21:30
@NoahCristino Progress?

« first day (88 days earlier)      last day (2584 days later) »