Timeline for Converting a string to lower-case (without built-in to-lower functions!)
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 20, 2017 at 0:18 | comment | added | FrownyFrog |
23 b.&32&.(3&u:)
|
|
Oct 20, 2017 at 0:12 | comment | added | FrownyFrog |
(32(23)b.])&.(3&u:) , should be 5 bytes shorter.
|
|
Oct 6, 2013 at 16:57 | comment | added | Dan Bron | Cool. But your Befunge solution still has J beat by 4 characters. Obviously I can't let that stand :) I'm trying to see if trim the J solution down by following your lead in relying solely on '@', rather than both '@' and 'Z'. | |
Oct 6, 2013 at 16:49 | comment | added | FireFly |
Ah, I've played around some with J myself.. I managed to come up with u:(a.i.x)+32*1='@Z'I.x=.1!:1]1 , which matches your length but is much less interesting (as it doesn't make use of 'under'). Speaking of which, I didn't know about dyadic I. , so thanks for using that. :-)
|
|
Oct 6, 2013 at 16:45 | comment | added | Dan Bron | Nice catch, thanks. I'm also impressed you were able to fix the code yourself: J isn't the most immediately-accessible language out there :) | |
Oct 6, 2013 at 16:43 | history | edited | Dan Bron | CC BY-SA 3.0 |
fix: UPPER->lower instead of lower->UPPER (thanks to Firefly for catch & correction).
|
Oct 6, 2013 at 16:33 | comment | added | FireFly |
Nice! Unfortunately, it seems your solution is going the WRONG WAY. ;-) Should be an easy fix though. (Edit: '@Z'(]+32*1=I.)&.(a.&i.)1!:1]1 should do it)
|
|
Oct 6, 2013 at 16:32 | review | First posts | |||
Oct 7, 2013 at 11:24 | |||||
Oct 6, 2013 at 16:14 | history | answered | Dan Bron | CC BY-SA 3.0 |