文件名称:lightlens:(实验性)实施Scala 3的轻巧镜片
文件大小:10KB
文件格式:ZIP
更新时间:2024-04-07 00:22:10
scala functional-programming lens optics dotty
浅色镜片 (实验性)实施Scala 3的轻型镜头 该项目的目的是通过添加一个导入语句来提供易于使用的镜片功能。 例子: import lightlens . * case class Name ( name : String ) case class Person ( firstName : Name , age : Int , id : String , siblingsNo : Int ) val bob = Person ( Name ( " Bob " ), 25 , " 2137 " , 3 ) bob.focus(_.firstName.name).modify(_.toLowerCase) 灵感
【文件预览】:
lightlens-master
----project()
--------build.properties(18B)
--------plugins.sbt(53B)
----CopyExample.txt(610B)
----src()
--------core()
--------examples()
--------test()
----.vscode()
--------settings.json(57B)
----LICENSE(11KB)
----build.sbt(1KB)
----README.md(570B)
----.gitignore(713B)