matejcerny on Nostr: Scala 3 introduces a lot of new tuple operations, some of which feel almost magical. ...
Scala 3 introduces a lot of new tuple operations, some of which feel almost magical. Look at the apply method, which can resolve out-of-bounds error at compile time, or the head method, which returns an Int instead of an Option[Int]. #scala3
Published at
2024-09-03 10:09:35Event JSON
{
"id": "1493f982888131d98d5dd4750af4717ef44d9380d8d4a11c2be74146613b86d4",
"pubkey": "f5c3f597f754f534d47b0be2b9afe263894ecdad3d639453c4abc31f40db2c23",
"created_at": 1725358175,
"kind": 1,
"tags": [
[
"t",
"scala3"
]
],
"content": "Scala 3 introduces a lot of new tuple operations, some of which feel almost magical. Look at the apply method, which can resolve out-of-bounds error at compile time, or the head method, which returns an Int instead of an Option[Int]. #scala3 https://m.primal.net/Kbyu.png ",
"sig": "19dd4d8f0176107f39ff2388592ee3614482959520f8ed2f2f16865a4aca9c3199e9e309221b1dd59f7d36bb2100b1ed0cdde4313ccc167e6e518c32d28b6d75"
}