r.push(f(a.splice(0,l/s[0]),s.slice(1)))&&f(a,s,r,l) recursively splits a to chunks of length l/s[0], the f(a.splice(0,l/s[0]),s.slice(1))) chunks each chunk before it is pushed to r
The meta-polyglot quine
In my time on PPCG, I've noticed that quine problems and polyglot problems are quite popular. Also, meta-solutions to problems, that is, scripts which generate a program which is the solution to a problem, tend to get a lot of positive feedback from the community. Therefo...
@noɥʇʎPʎzɐɹC I'm saying there's no clear line for what culture I identify with most. US, sure, but not any particular area, and they all have different cultures. And I love to eat pretty much everything. Well, except mayo. Mayo makes me gag.
@noɥʇʎPʎzɐɹC Hmm. Born in Illinois, lived in Germany for seven years, Japan for three, New York for two, Georgia for seven, Florida for maybe six, Arkansas for another seven, and various short periods in Mississippi, Alabama, and New Jersey. Take your pick :D
$ ./dist/cli/cheddar -o test.cdr test/cheddar/class.cheddar
$ ./dist/cli/cheddar -c test.cdr
/Users/vihan/Documents/Code/Cheddar/dist/interpreter/core/eval/eval.js:208
NAME = DATA.Operator; // Get the list of operators DATA has
^
TypeError: Cannot read property 'Operator' of undefined
at CheddarEval.step (/Users/vihan/Documents/Code/Cheddar/dist/interpreter/core/eval/eval.js:208:32)
at CheddarEval.exec (/Users/vihan/Documents/Code/Cheddar/dist/interpreter/core/eval/eval.js:292:34)
Regex Crossword
Challenge
Write the shortest program that outputs a valid solution to a regex crossword. A regex crossword is a crossword that has regular expressions for the clues, like in this Puzzling SE puzzle: The Prognosticator.
Terminology your program needs to know (simplified from he...
In my time on PPCG, I've noticed that quine problems and polyglot problems are quite popular. Also, meta-solutions to problems, that is, scripts which generate a program which is the solution to a problem, tend to get a lot of positive feedback from the community. Therefore, I have created this c...
You might want to ask about the possibility of your original problem on cs.stackexchange.com. They are really good with that kind of stuff (computer science)
Match the BF output code-golf regex
Your task is, when given a BF program as input and 256 1's on the line after the BF program, match the amount of 1's equal to the value of the pointer at the end of the code.
For a BF tutorial, see here.
Example programs:
+++
(255 1's)
(The above program s...
I was wondering if there are any esoteric or golfing languages which specifically target text output and ASCII art?
For example, 05AB1E at least started by targeting base conversions. Are there any golfing languages targeting text output and text output art?
If so, do they have tip pages here...
yeah back from lesson (holy hell I should've stayed home; I'm sick as hell and keep falling asleep in class), I could probably fit such a thing to 1mb ram, yeah
@ConorO'Brien In addition to the online compiler DJMcMayhem pointed to, there's this table. Most of the names are Matlab's equivalent function, not sure how useful that may be
@Fatalize Please choose one of the following replies as the response to your message: 1) Everybody in the US is busy planning their move to Canada, 2) Everybody in the US is trying to vote but because of voting on Tuesday the line has gone all around the block and into the next town, 3) Everybody in the US is sleeping
The & Meta-Function (Alternative Input / Output Specification)
The traditional way to specify the number of input arguments to pass to a function is to use the $ meta-function
2$: % Two-input version of :
Similarly, to specify the number of output arguments you can use the # meta-function...
Also I don't really follow politics so I have no idea who was elected when anymore
A few years back Kevin Rudd replaced Julia Gillard for like a few months before the election
Anonymous
In America's defense, we've only had one president ousted (Nixon, though he technically resigned, since he almost certainly would've been impeached) in the entire history of our country. Every other president has served their term(s) or died trying.
This problem is about separating a string representing a product identifier into three components.
The first part consists of upper and lower letters of arbitrary length which represents the warehouse.
The second part is digits which represents the product number. This part is also of arbitra...
Parse an XML file
Your task is to parse an XML file and pretty print it. I am explicitly making this simple to encourage extremely golfed code.
The pretty printing goes from XML like this:
<div class="community-option">
<input id="communitymode" name="communitymode" type="checkbox">
<l...
@ASCII-only I don't know what the original question was - if it was to find any x, then sure that's simple. If it's to find the minimal such x then that gets harder.