Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Posts by snail_‭

32 posts
66%
+2 −0
Challenges Make my number a set

Ruby, 27 bytes ->n{x=[];n.times{x<<x*1};x} ->n{ } # lambda taking n x=[]; # set x to empty array n.times{ }; # repeat...

posted 3y ago by snail_‭

Answer
60%
+1 −0
Challenges Evens or Odds - you know this one

Ruby, 8 bytes ->n{n%2} Generic mod-in-a-lambda solution. Alternately, for 2.7+: ->{_1%2} Try it online!

posted 3y ago by snail_‭

Answer
80%
+6 −0
Challenges Is it a near-anagram?

Two words are anagrams of each other if the letters of one can be reordered to spell the other; e.g. ADOBE and ABODE are anagrams. An alternate way of describing it is that both words contain the s...

5 answers  ·  posted 3y ago by snail_‭  ·  edited 3y ago by General Sebast1an‭

Question code-golf string
66%
+2 −0
Sandbox Is it a near-anagram? [FINALIZED]

posted 3y ago by snail_‭  ·  edited 3y ago by snail_‭

66%
+2 −0
Challenges Tile pyramids on top of each other!

Ruby, 43 bytes ->n{(1..n).map{|i|" "*(n-i)+?/*i+?\\*i}*$/} ->n{ } # lambda (1..n).map{|i| } # map over 1 to n ...

posted 3y ago by snail_‭

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

Ruby, 38 bytes Simple map and sum over the coefficients. No TIO link, this uses numbered lambda parameters which require Ruby 2.7. ->l,x{l.each_with_index.sum{_1*x**_2}}

posted 3y ago by snail_‭

Answer
81%
+7 −0
Challenges Reverse an ASCII string

Ahead, 3 bytes SW@ S Slurp entire input to stack W Write entire stack @ End Try it online!

posted 3y ago by snail_‭

Answer