« first day (934 days earlier)
← previous day
next day →
last day (462 days later) »
Leo
12:03 AM
@MartinEnder I have trouble following the logic of this parity test, could you explain that?
By the way, this looks way more straightforward to me (and shorter)
Try it online!
Martin Ender
Oh, that's much better.
In mine I use
f
for two things: a) to get a zero and b) to decrement the input to zero while toggling the other value between zero and one.
So
g
creates a pair of the input and
0
, and then we just repeatedly
dip
it, which continues until the input reaches zero.
Leo
Yeah, I was beginning to understand that, that's a nice trick :)
Martin Ender
But completely unnecessary :P
Leo
But I was thinking, would it hurt Dodos if numbers could be used directly for returning constant values?
Trying to write a multiline snippet from my phone, it doesn't work -.-
What I mean is, this could be a function taking
n
as input and returning
(n,0)
Try it online!
Martin Ender
But then hello world would be boring ;)
Leo
12:17 AM
True :D
3 hours later…
Leo
3:28 AM
I have an alternative Hello World which I like, but unfortunately it's not shorter than Dennis's one
Try it online!
7 hours later…
Martin Ender
10:53 AM
@Leo
you should post that btw
Cows quack
@MartinEnder I have
this
at 13 bytes
Martin Ender
you got ninja'd by Leo
Cows quack
ah, I missed that
2 hours later…
Leo
12:34 PM
Posted
« first day (934 days earlier)
← previous day
next day →
last day (462 days later) »
all rooms
Transcript for
Mar
15
Mar '18
16
Mar
19
Esoteric Programming Languages
A room for discussing, creating, using, golfing and discoverin...
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile