Skip to main content
1 of 3
GamrCorps
  • 7.6k
  • 2
  • 29
  • 61

##Convex 0.2+, 25 bytes Convex is a new language that I am developing that is heavily based on CJam and Golfscript. The interpreter and IDE can be found here. Input is an integer into the command line arguments.

2bs®(?<=(.))(?=\\1)"ö2fbp

Explanation:

2bs                         Convert to binary string
   ®(?<=(.))(?=\\1)"        Regex literal
                    ö       Split string on regex
                     2fb    Convert each split string into decimal integer
                        p   Print resulting array
GamrCorps
  • 7.6k
  • 2
  • 29
  • 61