Post History
APL (Dyalog APL), 42 bytes {⎕UCS⊢2⊥1@2⊢(7⍴2)⊤⎕UCS⍵} Attempt This Online! In APL, base encoding(⊤) returns a matrix, so setting the lowercase bit is very easy with 1@2, setting the entire secon...
Answer
#3: Post edited
- # [APL (Dyalog APL)](https://www.dyalog.com/products.htm), 42 bytes
```- {⎕UCS⊢2⊥1@2⊢(7⍴2)⊤⎕UCS⍵}
- ````
- [Attempt This Online!](https://ato.pxeger.com/run?1=bdbLTttAGIbhbZWrCMfYEAcSAgkCQjhDD0ChlLYUiHOwOZgkkAQIxqwQiyCqbrpClRAqm67biylLX0kH5Qv6kH4vZsbP2LtXmrn9na-bTsneNsvO3d1DrWoZyX9h27_67vrffqxNrfqN-5jfeIim1XivJfybPzHdb_zC5s1fr_nP46u4hZ_UFDIMI-RfX6r9YChopNSg2UH1pnuB5hdBS1lI0c-nmbAN2MbYDmxn7AB2MHYCOxm7gF2M3cBuRvU0VT3EGlRj1IE6Yw-wh7EX2MsYBoYZDaDBGAFGGPuAfYz9wH7GKDDKGAPGGAeAA4xxYJxxEDjIOAQcYkwAE4xJYJJxGDjMqAT8tKKNEfAI4yhwlHEMOMaYAqYYx4HjjGlghnECaDJOArOMU8Ac4zQwzzgDLDDOAi3GOaDNOA_cYVwA7jK-Bu4xvgHuM74FOozvgAeMi8Ai4xKwxLgMLDO-Bx4yrgCPGFeBFcYPwCrjGrDG-BF4zLgOPGH8BDxl_AysM34BnjFuAF3Gr8Bzxk2gx7gFvGDMSCmaUopZKcWclGJeSrEgpWhJKdpSijtSirtSintSivtSio6U4oGUYlFKsSSlWJZSPJRSPJJSrEgpVqUUa1KKx1KKJ1KKp1KKdSnFMylFV0rxXErRk1K8kFLUNjR3pphzSpVC3tM3W2eh5mpu4Zm9F0fjRHoy0krQzGTVOhBoXh5aF4__)
- In APL, base encoding(`⊤`) returns a matrix, so setting the lowercase bit is very easy with `1@2`, setting the entire second row to 1.
- # [APL (Dyalog APL)](https://www.dyalog.com/products.htm), 42 bytes
- ```apl
- {⎕UCS⊢2⊥1@2⊢(7⍴2)⊤⎕UCS⍵}
- ````
- [Attempt This Online!](https://ato.pxeger.com/run?1=bdbLTttAGIbhbZWrCMfYEAcSAgkCQjhDD0ChlLYUiHOwOZgkkAQIxqwQiyCqbrpClRAqm67biylLX0kH5Qv6kH4vZsbP2LtXmrn9na-bTsneNsvO3d1DrWoZyX9h27_67vrffqxNrfqN-5jfeIim1XivJfybPzHdb_zC5s1fr_nP46u4hZ_UFDIMI-RfX6r9YChopNSg2UH1pnuB5hdBS1lI0c-nmbAN2MbYDmxn7AB2MHYCOxm7gF2M3cBuRvU0VT3EGlRj1IE6Yw-wh7EX2MsYBoYZDaDBGAFGGPuAfYz9wH7GKDDKGAPGGAeAA4xxYJxxEDjIOAQcYkwAE4xJYJJxGDjMqAT8tKKNEfAI4yhwlHEMOMaYAqYYx4HjjGlghnECaDJOArOMU8Ac4zQwzzgDLDDOAi3GOaDNOA_cYVwA7jK-Bu4xvgHuM74FOozvgAeMi8Ai4xKwxLgMLDO-Bx4yrgCPGFeBFcYPwCrjGrDG-BF4zLgOPGH8BDxl_AysM34BnjFuAF3Gr8Bzxk2gx7gFvGDMSCmaUopZKcWclGJeSrEgpWhJKdpSijtSirtSintSivtSio6U4oGUYlFKsSSlWJZSPJRSPJJSrEgpVqUUa1KKx1KKJ1KKp1KKdSnFMylFV0rxXErRk1K8kFLUNjR3pphzSpVC3tM3W2eh5mpu4Zm9F0fjRHoy0krQzGTVOhBoXh5aF4__)
- In APL, base encoding(`⊤`) returns a matrix, so setting the lowercase bit is very easy with `1@2`, setting the entire second row to 1.
#2: Post edited
- # [APL (Dyalog APL)](https://www.dyalog.com/products.htm), 42 bytes
- ```
- {⎕UCS⊢2⊥1@2⊢(7⍴2)⊤⎕UCS⍵}
- ````
- [Attempt This Online!](https://ato.pxeger.com/run?1=bdbLTttAGIbhbZWrCMfYEAcSAgkCQjhDD0ChlLYUiHOwOZgkkAQIxqwQiyCqbrpClRAqm67biylLX0kH5Qv6kH4vZsbP2LtXmrn9na-bTsneNsvO3d1DrWoZyX9h27_67vrffqxNrfqN-5jfeIim1XivJfybPzHdb_zC5s1fr_nP46u4hZ_UFDIMI-RfX6r9YChopNSg2UH1pnuB5hdBS1lI0c-nmbAN2MbYDmxn7AB2MHYCOxm7gF2M3cBuRvU0VT3EGlRj1IE6Yw-wh7EX2MsYBoYZDaDBGAFGGPuAfYz9wH7GKDDKGAPGGAeAA4xxYJxxEDjIOAQcYkwAE4xJYJJxGDjMqAT8tKKNEfAI4yhwlHEMOMaYAqYYx4HjjGlghnECaDJOArOMU8Ac4zQwzzgDLDDOAi3GOaDNOA_cYVwA7jK-Bu4xvgHuM74FOozvgAeMi8Ai4xKwxLgMLDO-Bx4yrgCPGFeBFcYPwCrjGrDG-BF4zLgOPGH8BDxl_AysM34BnjFuAF3Gr8Bzxk2gx7gFvGDMSCmaUopZKcWclGJeSrEgpWhJKdpSijtSirtSintSivtSio6U4oGUYlFKsSSlWJZSPJRSPJJSrEgpVqUUa1KKx1KKJ1KKp1KKdSnFMylFV0rxXErRk1K8kFLUNjR3pphzSpVC3tM3W2eh5mpu4Zm9F0fjRHoy0krQzGTVOhBoXh5aF4__)
In APL, decoding returns a matrix, so setting the lowercase bit is very easy with `1@2`, setting the entire second row to 1.
- # [APL (Dyalog APL)](https://www.dyalog.com/products.htm), 42 bytes
- ```
- {⎕UCS⊢2⊥1@2⊢(7⍴2)⊤⎕UCS⍵}
- ````
- [Attempt This Online!](https://ato.pxeger.com/run?1=bdbLTttAGIbhbZWrCMfYEAcSAgkCQjhDD0ChlLYUiHOwOZgkkAQIxqwQiyCqbrpClRAqm67biylLX0kH5Qv6kH4vZsbP2LtXmrn9na-bTsneNsvO3d1DrWoZyX9h27_67vrffqxNrfqN-5jfeIim1XivJfybPzHdb_zC5s1fr_nP46u4hZ_UFDIMI-RfX6r9YChopNSg2UH1pnuB5hdBS1lI0c-nmbAN2MbYDmxn7AB2MHYCOxm7gF2M3cBuRvU0VT3EGlRj1IE6Yw-wh7EX2MsYBoYZDaDBGAFGGPuAfYz9wH7GKDDKGAPGGAeAA4xxYJxxEDjIOAQcYkwAE4xJYJJxGDjMqAT8tKKNEfAI4yhwlHEMOMaYAqYYx4HjjGlghnECaDJOArOMU8Ac4zQwzzgDLDDOAi3GOaDNOA_cYVwA7jK-Bu4xvgHuM74FOozvgAeMi8Ai4xKwxLgMLDO-Bx4yrgCPGFeBFcYPwCrjGrDG-BF4zLgOPGH8BDxl_AysM34BnjFuAF3Gr8Bzxk2gx7gFvGDMSCmaUopZKcWclGJeSrEgpWhJKdpSijtSirtSintSivtSio6U4oGUYlFKsSSlWJZSPJRSPJJSrEgpVqUUa1KKx1KKJ1KKp1KKdSnFMylFV0rxXErRk1K8kFLUNjR3pphzSpVC3tM3W2eh5mpu4Zm9F0fjRHoy0krQzGTVOhBoXh5aF4__)
- In APL, base encoding(`⊤`) returns a matrix, so setting the lowercase bit is very easy with `1@2`, setting the entire second row to 1.
#1: Initial revision
# [APL (Dyalog APL)](https://www.dyalog.com/products.htm), 42 bytes ``` {⎕UCS⊢2⊥1@2⊢(7⍴2)⊤⎕UCS⍵} ```` [Attempt This Online!](https://ato.pxeger.com/run?1=bdbLTttAGIbhbZWrCMfYEAcSAgkCQjhDD0ChlLYUiHOwOZgkkAQIxqwQiyCqbrpClRAqm67biylLX0kH5Qv6kH4vZsbP2LtXmrn9na-bTsneNsvO3d1DrWoZyX9h27_67vrffqxNrfqN-5jfeIim1XivJfybPzHdb_zC5s1fr_nP46u4hZ_UFDIMI-RfX6r9YChopNSg2UH1pnuB5hdBS1lI0c-nmbAN2MbYDmxn7AB2MHYCOxm7gF2M3cBuRvU0VT3EGlRj1IE6Yw-wh7EX2MsYBoYZDaDBGAFGGPuAfYz9wH7GKDDKGAPGGAeAA4xxYJxxEDjIOAQcYkwAE4xJYJJxGDjMqAT8tKKNEfAI4yhwlHEMOMaYAqYYx4HjjGlghnECaDJOArOMU8Ac4zQwzzgDLDDOAi3GOaDNOA_cYVwA7jK-Bu4xvgHuM74FOozvgAeMi8Ai4xKwxLgMLDO-Bx4yrgCPGFeBFcYPwCrjGrDG-BF4zLgOPGH8BDxl_AysM34BnjFuAF3Gr8Bzxk2gx7gFvGDMSCmaUopZKcWclGJeSrEgpWhJKdpSijtSirtSintSivtSio6U4oGUYlFKsSSlWJZSPJRSPJJSrEgpVqUUa1KKx1KKJ1KKp1KKdSnFMylFV0rxXErRk1K8kFLUNjR3pphzSpVC3tM3W2eh5mpu4Zm9F0fjRHoy0krQzGTVOhBoXh5aF4__) In APL, decoding returns a matrix, so setting the lowercase bit is very easy with `1@2`, setting the entire second row to 1.