Skip to main content
Commonmark migration
Source Link

#J, 18 bytes

J, 18 bytes

'''&()[-.'&([-.-.)

How it works

 ''&()[-.           the character set, '' stands for '
          &         is the left operand
           ([    )  the set> itself, ignore <the input
           (   -.)  the set> except any characters in <the input
                      (the wrong ones remain)
           ( -.  )  the set itself> except <the wrong characters

Try it online!

#J, 18 bytes

'''&()[-.'&([-.-.)

How it works

 ''&()[-.           the character set, '' stands for '
          &         is the left operand
           ([    )  the set> itself, ignore <the input
           (   -.)  the set> except any characters in <the input
                      (the wrong ones remain)
           ( -.  )  the set itself> except <the wrong characters

Try it online!

J, 18 bytes

'''&()[-.'&([-.-.)

How it works

 ''&()[-.           the character set, '' stands for '
          &         is the left operand
           ([    )  the set> itself, ignore <the input
           (   -.)  the set> except any characters in <the input
                      (the wrong ones remain)
           ( -.  )  the set itself> except <the wrong characters

Try it online!

added 108 characters in body
Source Link
FrownyFrog
  • 3.8k
  • 1
  • 14
  • 20

#J, 18 bytes

  '''&()[-.'&([-.-.)

How it works

   ''&()[-.           the character set, '' stands for '
            &         is the left operand
             ([    )  the set> itself, ignore <the input
             (   -.)  the set> except any characters in <input<the input
                                      [the(the wrong ones remain]remain)
             ( -.  )  the set itself> except <the wrong characters

Try it online!

#J, 18 bytes

  '''&()[-.'&([-.-.)

How it works

   ''&()[-.           the character set, '' stands for '
            &         is the left operand
             ([    )  the set> itself, ignore <the input
             (   -.)  the set> except any characters in <input 
                                      [the wrong ones remain]
             ( -.  )  the set itself> except <the wrong characters

#J, 18 bytes

'''&()[-.'&([-.-.)

How it works

 ''&()[-.           the character set, '' stands for '
          &         is the left operand
           ([    )  the set> itself, ignore <the input
           (   -.)  the set> except any characters in <the input
                      (the wrong ones remain)
           ( -.  )  the set itself> except <the wrong characters

Try it online!

added 18 characters in body
Source Link
FrownyFrog
  • 3.8k
  • 1
  • 14
  • 20

#J, 18 bytes

  '''&()[-.'&([-.-.)
 

How it works

   ''&()[-.           the character set, '' stands for '
            &         is the left operand
             ([    )  the set> itself, ignore <the input
             (   -.)  the set> except any characters in <input 
                                      [the wrong ones remain]
             ( -.  )  the set itself> except <the wrong characters

#J, 18 bytes

  '''&()[-.'&([-.-.)
 
   ''&()[-.           the character set, '' stands for '
            &         is the left operand
             ([    )  the set> itself, ignore <the input
             (   -.)  the set> except any characters in <input 
                                      [the wrong ones remain]
             ( -.  )  the set itself> except <the wrong characters

#J, 18 bytes

  '''&()[-.'&([-.-.)

How it works

   ''&()[-.           the character set, '' stands for '
            &         is the left operand
             ([    )  the set> itself, ignore <the input
             (   -.)  the set> except any characters in <input 
                                      [the wrong ones remain]
             ( -.  )  the set itself> except <the wrong characters
edited body
Source Link
FrownyFrog
  • 3.8k
  • 1
  • 14
  • 20
Loading
Source Link
FrownyFrog
  • 3.8k
  • 1
  • 14
  • 20
Loading