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 Wezl‭

11 posts
88%
+13 −0
Meta Should challenges be worth 10 reputation?

Yes Challenges are what we need to survive Some of our users answer almost every new challenge, but that's not enough to keep codidact alive if there are no new challenges now and then. Challeng...

posted 3y ago by Wezl‭

Answer
81%
+7 −0
Challenges Make my number a set

Natural to set (set meaning an unordered collection with no duplicates, though answers may use and output lists instead) Recently I was brainstorming what a language with only (arbitrarily nested...

10 answers  ·  posted 3y ago by Wezl‭  ·  last activity 2y ago by radarek‭

Question code-golf number
77%
+5 −0
Challenges Reverse an ASCII string

jq, 16 bytes, preferably -rR ./""|reverse|add Annoyingly, jq has convenient things like implicit I/O, and annoying things like adding strings, but you can't reverse a string >:|. ./""&...

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

Answer
75%
+4 −0
Challenges Merge two strings

Sed -E, 25 bytes Takes second input, , comma, first input (inputs cannot contain , commas). s/^(.*)(.*),(.*)\1$/\3\2/

posted 3y ago by Wezl‭

Answer
71%
+3 −0
Q&A Befunge Golfing Tips

Exploiting layout Make it thin Newlines and indentation are expensive, so remove them when possible. Some examples: &v factorial v< > >:1-:| v* < >$>\:| ...

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

Answer
71%
+3 −0
Challenges Obligatory Quine Challenge

Jq, -rn 18 bytes "|@json+."|@json+. "|@json+." # the string | # through the filter @json # json encoded + # concatenated with ...

posted 3y ago by Wezl‭

Answer
71%
+3 −0
Challenges Reduce over the range [1..n]

Ruby, 17 bytes ->{_2.reduce(_1)} Takes function (Proc) followed by Array. 32 bytes without inject or reduce ->f,(a,*r){r.map{|n|a=f[a,n]};a}

posted 2y ago by Wezl‭

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

Jq, 19 bytes def s:[range(.)|s];

posted 3y ago by Wezl‭

Answer
66%
+2 −0
Challenges Evaluation order of an APL n-train

posix SH + GNU sed, 43 bytes seq $1|tac|sed -zE 's/(\n.+)(\n.+)/\2\1/mg' seq $1 # 1..the argument (inclusive) |tac| # reverse sed # replace...

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

Answer
66%
+2 −0
Challenges Word Set Square

Ruby, 74 bytes Full program: s=gets+$_.reverse puts [s[0]]+s[1..-2].chars.zip(0..).map{_1+' '*_2+_1}<<s Note that this is not fit for interactive use because it looks weird when you inp...

posted 2y ago by Wezl‭

Answer
66%
+2 −0
Challenges My house is destroyed! Can you make me one?

Ruby, 33 bytes ->n{?#*n+(' #'+' '*(n-2)+?#)*~-n} Try it online! Basically the same as moshi's python (developed parallelly).

posted 2y ago by Wezl‭  ·  edited 2y ago by Wezl‭

Answer