Silly question of the day: Is there a way in #scala3 to "unpack" a String at the type level ?
ie: val x: Unpack["abc"] = ('a', 'b', 'c')
Ah, you need to do `str.value.toList` outside the `'{}` and then put it inside.
-
-
Make that `str.value.get.toList`, probably. ;)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Hum I don't think I follow...
-
That's because I keep trying to guess at the answer without actually trying it. ;) Give me a moment...!
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.