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 »
Challenges

Post History

71%
+3 −0
Challenges Make my number a set

Japt, 3 bytes ÆßX Try it online! (don't mind the -Q This is Shaggy's solution. ÆßX Æ Make a range [0, input) and map each number X: ß Run this program again on X Japt, 11 8 bytes ...

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

Answer
#3: Post edited by user avatar user‭ · 2021-07-05T16:38:45Z (over 3 years ago)
  • # Japt, <s>11</s> 8 bytes
  • Saved 3 bytes thanks to Shaggy! (Shaggy also has a 3-byter ready)
  • ```
  • gA=_o mA
  • ```
  • [Try it online!](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&project=TWFrZSBteSBudW1iZXIgYSBzZXQgdjI) (actually, don't, try [this](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&project=TWFrZSBteSBudW1iZXIgYSBzZXQsIHN0cmluZ2lmaWVkIHYy) instead to see the output properly)
  • This is practically a port of [Razetime's answer](https://codegolf.codidact.com/posts/281529#answer-281529), which you should upvote!
  • ```
  • gA=_o mA
  • g Apply the following function to the input
  • A= It's a recursive function, so assign it to the variable A
  • _o Make a range [0, Z), where Z is the input
  • mA And map every number in that range to A again
  • ```
  • # Japt, 3 bytes
  • ```
  • ÆßX
  • ```
  • [Try it online!](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=xt9Y&input=MwotUQ) (don't mind the -Q
  • This is Shaggy's solution.
  • ```
  • ÆßX
  • Æ Make a range [0, input) and map each number X:
  • ß Run this program again on
  • X
  • ```
  • # Japt, <s>11</s> 8 bytes
  • Saved 3 bytes thanks to Shaggy! (Shaggy also has a 3-byter ready)
  • ```
  • gA=_o mA
  • ```
  • [Try it online!](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&project=TWFrZSBteSBudW1iZXIgYSBzZXQgMiB3LyBmbGFn)
  • This is practically a port of [Razetime's answer](https://codegolf.codidact.com/posts/281529#answer-281529), which you should upvote!
  • ```
  • gA=_o mA
  • g Apply the following function to the input
  • A= It's a recursive function, so assign it to the variable A
  • _o Make a range [0, Z), where Z is the input
  • mA And map every number in that range to A again
  • ```
#2: Post edited by user avatar user‭ · 2021-07-05T16:14:49Z (over 3 years ago)
  • # Japt, 11 bytes
  • ```
  • g$f=$_o m$f
  • ```
  • [Try it online!](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&project=TWFrZSBteSBudW1iZXIgYSBzZXQ) (actually, don't, try [this](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&project=TWFrZSBteSBudW1iZXIgYSBzZXQsIHN0cmluZ2lmaWVk) instead to see the output properly)
  • This is practically a port of [Razetime's answer](https://codegolf.codidact.com/posts/281529#answer-281529), which you should upvote!
  • ```
  • g$f=$_o m$f
  • g Apply the following function to the input
  • $f=$ It's a recursive function, so assign it to a variable f
  • _o Make a range [0, Z), where Z is the input
  • m And map every number in that range to f again
  • ```
  • # Japt, <s>11</s> 8 bytes
  • Saved 3 bytes thanks to Shaggy! (Shaggy also has a 3-byter ready)
  • ```
  • gA=_o mA
  • ```
  • [Try it online!](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&project=TWFrZSBteSBudW1iZXIgYSBzZXQgdjI) (actually, don't, try [this](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&project=TWFrZSBteSBudW1iZXIgYSBzZXQsIHN0cmluZ2lmaWVkIHYy) instead to see the output properly)
  • This is practically a port of [Razetime's answer](https://codegolf.codidact.com/posts/281529#answer-281529), which you should upvote!
  • ```
  • gA=_o mA
  • g Apply the following function to the input
  • A= It's a recursive function, so assign it to the variable A
  • _o Make a range [0, Z), where Z is the input
  • mA And map every number in that range to A again
  • ```
#1: Initial revision by user avatar user‭ · 2021-07-04T14:46:25Z (over 3 years ago)
# Japt, 11 bytes
```
g$f=$_o m$f
```
[Try it online!](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&project=TWFrZSBteSBudW1iZXIgYSBzZXQ) (actually, don't, try [this](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&project=TWFrZSBteSBudW1iZXIgYSBzZXQsIHN0cmluZ2lmaWVk) instead to see the output properly)

This is practically a port of [Razetime's answer](https://codegolf.codidact.com/posts/281529#answer-281529), which you should upvote!

```
g$f=$_o m$f
g            Apply the following function to the input
 $f=$        It's a recursive function, so assign it to a variable f
     _o      Make a range [0, Z), where Z is the input
        m    And map every number in that range to f again
```