Post History
BQN, 3 bytes Anonymous tacit infix function, taking the second string as left argument and the first string as right argument. ⥊⌊⌜ ⌊⌜ minimum table ⥊ deshape (flatten) BQN treats characters ...
Answer
#2: Post edited
# BQN, 9 bytes- Anonymous tacit infix function, taking the second string as left argument and the first string as right argument.
- ```
- ⥊⌊⌜
- ```
- `⌊⌜` minimum table
- `⥊` deshape (flatten)
- [BQN treats characters as an affine space](https://mlochbaum.github.io/BQN/doc/types.html#characters) which is basically a fancy name for each character being an integer (indicating the code point) and a Boolean (indicating the "characterness": 1 for character, 0 for non-character). Arithmetic on characters applies to both the code point and the characterness. Here, we take the minimum which gives the desired code point, and since both arguments are characters, the characterness stays at 1.
- [Try it!](https://mlochbaum.github.io/BQN/try.html#code=RuKGkOKliuKMiuKMnArin6gKIyDLnCByZXZlcnNlcyBvcmRlciBvZiBhcmd1bWVudHMKIiIgRsucICIiCiIiIEbLnCAiMTIzIgoiMTIiIEbLnCAiIgoiMiIgRsucICIzIgoiNSIgRsucICI0IgoiLy8iIEbLnCAiLy8vIgoieHh4eCIgRsucICJ4eCIKIjEyIiBGy5wgIjEyMyIKIjEyMyIgRsucICJhYmMiCiJhYmMiIEbLnCAiMTIzIgoiYWJjIiBGy5wgImFiYyIK4p+p)
- # BQN, 3 [bytes](https://github.com/mlochbaum/BQN/blob/master/commentary/sbcs.bqn)
- Anonymous tacit infix function, taking the second string as left argument and the first string as right argument.
- ```
- ⥊⌊⌜
- ```
- `⌊⌜` minimum table
- `⥊` deshape (flatten)
- [BQN treats characters as an affine space](https://mlochbaum.github.io/BQN/doc/types.html#characters) which is basically a fancy name for each character being an integer (indicating the code point) and a Boolean (indicating the "characterness": 1 for character, 0 for non-character). Arithmetic on characters applies to both the code point and the characterness. Here, we take the minimum which gives the desired code point, and since both arguments are characters, the characterness stays at 1.
- [Try it!](https://mlochbaum.github.io/BQN/try.html#code=RuKGkOKliuKMiuKMnArin6gKIyDLnCByZXZlcnNlcyBvcmRlciBvZiBhcmd1bWVudHMKIiIgRsucICIiCiIiIEbLnCAiMTIzIgoiMTIiIEbLnCAiIgoiMiIgRsucICIzIgoiNSIgRsucICI0IgoiLy8iIEbLnCAiLy8vIgoieHh4eCIgRsucICJ4eCIKIjEyIiBGy5wgIjEyMyIKIjEyMyIgRsucICJhYmMiCiJhYmMiIEbLnCAiMTIzIgoiYWJjIiBGy5wgImFiYyIK4p+p)
#1: Initial revision
# BQN, 9 bytes Anonymous tacit infix function, taking the second string as left argument and the first string as right argument. ``` ⥊⌊⌜ ``` `⌊⌜` minimum table `⥊` deshape (flatten) [BQN treats characters as an affine space](https://mlochbaum.github.io/BQN/doc/types.html#characters) which is basically a fancy name for each character being an integer (indicating the code point) and a Boolean (indicating the "characterness": 1 for character, 0 for non-character). Arithmetic on characters applies to both the code point and the characterness. Here, we take the minimum which gives the desired code point, and since both arguments are characters, the characterness stays at 1. [Try it!](https://mlochbaum.github.io/BQN/try.html#code=RuKGkOKliuKMiuKMnArin6gKIyDLnCByZXZlcnNlcyBvcmRlciBvZiBhcmd1bWVudHMKIiIgRsucICIiCiIiIEbLnCAiMTIzIgoiMTIiIEbLnCAiIgoiMiIgRsucICIzIgoiNSIgRsucICI0IgoiLy8iIEbLnCAiLy8vIgoieHh4eCIgRsucICJ4eCIKIjEyIiBGy5wgIjEyMyIKIjEyMyIgRsucICJhYmMiCiJhYmMiIEbLnCAiMTIzIgoiYWJjIiBGy5wgImFiYyIK4p+p)