« first day (537 days earlier)
← previous day
next day →
last day (727 days later) »
user1502040
21:59
Hey @Dennis can you give me please help me out with a simple question?
Dennis
@user1502040 Hopefully. What is your question?
user1502040
how do you multiply two lists elementwise?
Dennis
×
user1502040
between them?
Dennis
Yes.
tio.run/nexus/jelly#@2@oY6RjfHi6iY6pjtn//wA
user1502040
22:08
how would you e.g. convert 4 and 7 to binary and multiply the results?
Dennis
Multiply how? They happen to have the same number of digits, but what should the code do for, e.g., 4 and 9?
user1502040
Assume they have the same number of digits
It's just an example
Dennis
Right. You can achieve this with a monadic function (taking a list) or a dyadic one (taking two integers).
tio.run/nexus/jelly#@@8U8P//fxMdBXMA
tio.run/nexus/jelly#@@90eLpT7f///03@mwMA
user1502040
ok, thank you
Dennis
@user1502040 These will left-align the digits for 4 and 9. If you want to right-align them, I wouldn't use product at all.
&B
takes bitwise AND, then converts to binary.
tio.run/nexus/jelly#@6/m9P//f5P/5gA
« first day (537 days earlier)
← previous day
next day →
last day (727 days later) »
all rooms
Transcript for
May
22
May '17
26
May
28
Jelly
Discussion of the Jelly programming language. (
github.com/Denn...
jelly
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2025 Stack Exchange Inc;
legal
mobile