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

66%
+2 −0
Challenges Looping counter

Haskell, 35 bytes main=mapM putStrLn$iterate('*':)"*" Attempt This Online! 55 -> 39, with orthoplex's idea. 39 -> 35 from orthoplex.

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

Answer
#3: Post edited by user avatar Razetime‭ · 2022-04-25T13:58:28Z (almost 2 years ago)
  • # [Haskell](https://www.haskell.org), 39 bytes
  • <pre><code>main=mapM putStrLn$tail$iterate(&#39;*&#39;:)&quot;&quot;</code></pre>
  • [Attempt This Online!](https://ato.pxeger.com/run?1=m708I7E4OzUnZ8GCpaUlaboWN9VzEzPzbHMTC3wVCkpLgkuKfPJUShIzc1QyS1KLEktSNdS11K00lZQgyqG6YLoB)
  • 55 -> 39, with orthoplex's idea.
  • # [Haskell](https://www.haskell.org), 35 bytes
  • <pre><code>main=mapM putStrLn$iterate(&#39;*&#39;:)&quot;*&quot;</code></pre>
  • [Attempt This Online!](https://ato.pxeger.com/run?1=m708I7E4OzUnZ8GCpaUlaboWN5VzEzPzbHMTC3wVCkpLgkuKfPJUMktSixJLUjXUtdStNJW0lCBKoTpgOgE)
  • 55 -> 39, with orthoplex's idea.
  • 39 -> 35 from orthoplex.
#2: Post edited by user avatar Razetime‭ · 2022-04-22T14:03:27Z (almost 2 years ago)
  • # [Haskell](https://www.haskell.org), 55 bytes
  • <pre><code>import Data.List
  • main=mapM putStrLn$tail$inits$cycle&quot;*&quot;</code></pre>
  • [Attempt This Online!](https://ato.pxeger.com/run?1=m708I7E4OzUnZ8GCpaUlaboWN80zcwvyi0oUXBJLEvV8MotLuHITM_NscxMLfBUKSkuCS4p88lRKEjNzVDLzMkuKVZIrk3NSlbSUINqhpsBMAwA)
  • # [Haskell](https://www.haskell.org), 39 bytes
  • <pre><code>main=mapM putStrLn$tail$iterate(&#39;*&#39;:)&quot;&quot;</code></pre>
  • [Attempt This Online!](https://ato.pxeger.com/run?1=m708I7E4OzUnZ8GCpaUlaboWN9VzEzPzbHMTC3wVCkpLgkuKfPJUShIzc1QyS1KLEktSNdS11K00lZQgyqG6YLoB)
  • 55 -> 39, with orthoplex's idea.
#1: Initial revision by user avatar Razetime‭ · 2022-04-22T11:18:18Z (almost 2 years ago)
# [Haskell](https://www.haskell.org), 55 bytes

<pre><code>import Data.List
main=mapM putStrLn$tail$inits$cycle&quot;*&quot;</code></pre>

[Attempt This Online!](https://ato.pxeger.com/run?1=m708I7E4OzUnZ8GCpaUlaboWN80zcwvyi0oUXBJLEvV8MotLuHITM_NscxMLfBUKSkuCS4p88lRKEjNzVDLzMkuKVZIrk3NSlbSUINqhpsBMAwA)