Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Make Gimbap cutter

Haskell, 32 bytes

f(')':s)=f s
f s=do ')'<-s;"@) "

Try it online!

Recursion beats using span for removing the initial ('s.

Haskell, 33 bytes

f s=do ')'<-snd$span(<'@')s;"@) "

Try it online!


JavaScript, 42 41 bytes

s=>s.split(/(?<[email protected]*)\)/).fill``.join`@) `

Try It Online!


Canvas, 10 9 bytes

@sj∑L@) ×

Try it here!

Tags:

Code Golf

Ascii Art

Related

Group Integers by Originality Overlapping String-Blocks Generate a Graeco-Latin square Is there are exactly one partition, given length of partition and maximum number? Convert between Korean two-set keyboard and qwerty keyboard Count rotary dial pulses in a phone number (including letters) Dad jokes are fun Surface of the 3x3x3 cube as a graph Warped chessboard Save my secrets! Parse a C++14 integer literal Generate ladder of integers using the least number of unique characters (in C++)

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy