Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active May 25, 2024 10:19

Revisions

  1. dacr revised this gist May 25, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion scala-feature-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    // run-with : scala-cli $file

    // ---------------------
    //> using scala "3.4.2"
    //> using scala "3.4.2"
    // ---------------------

    implicit class SuperRichString(in:String) { def truc = in.size/2}
  2. dacr revised this gist May 25, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion scala-feature-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    // run-with : scala-cli $file

    // ---------------------
    //> using scala "3.1.1"
    //> using scala "3.4.2"
    // ---------------------

    implicit class SuperRichString(in:String) { def truc = in.size/2}
  3. dacr revised this gist Apr 2, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion scala-feature-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    // keywords : scala, language-feature, implicit-class, @testable
    // publish : gist
    // authors : David Crosson
    // license : Apache2 BUT Machine Learning models training is not allowed by the author
    // license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335
    // created-on : 2020-05-31T19:54:52Z
    // managed-by : https://github.com/dacr/code-examples-manager
  4. dacr revised this gist Dec 11, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion scala-feature-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    // keywords : scala, language-feature, implicit-class, @testable
    // publish : gist
    // authors : David Crosson
    // license : Apache2
    // license : Apache2 BUT Machine Learning models training is not allowed by the author
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335
    // created-on : 2020-05-31T19:54:52Z
    // managed-by : https://github.com/dacr/code-examples-manager
  5. dacr revised this gist Jul 20, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion scala-feature-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335
    // created-on : 2020-05-31T19:54:52Z
    // managed-by : https://github.com/dacr/code-examples-manager
    // run-with : scala-cli $scriptFile
    // run-with : scala-cli $file

    // ---------------------
    //> using scala "3.1.1"
  6. dacr revised this gist Jan 28, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion scala-feature-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    // run-with : scala-cli $scriptFile

    // ---------------------
    // using scala 3.1.0
    //> using scala "3.1.1"
    // ---------------------

    implicit class SuperRichString(in:String) { def truc = in.size/2}
  7. dacr revised this gist Dec 8, 2021. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion scala-feature-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,11 @@
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335
    // created-on : 2020-05-31T19:54:52Z
    // managed-by : https://github.com/dacr/code-examples-manager
    // execution : scala ammonite script (http://ammonite.io/) - run as follow 'amm scriptname.sc'
    // run-with : scala-cli $scriptFile

    // ---------------------
    // using scala 3.1.0
    // ---------------------

    implicit class SuperRichString(in:String) { def truc = in.size/2}
    println("hello".truc)
  8. dacr revised this gist Nov 30, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions scala-feature-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    // license : Apache2
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335
    // created-on : 2020-05-31T19:54:52Z
    // managed-by : https://github.com/dacr/code-examples-manager
    // execution : scala ammonite script (http://ammonite.io/) - run as follow 'amm scriptname.sc'

    implicit class SuperRichString(in:String) { def truc = in.size/2}
  9. dacr revised this gist Nov 29, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions scala-feature-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,7 @@
    // authors : David Crosson
    // license : Apache2
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335
    // created-on : 2020-05-31T19:54:52Z
    // execution : scala ammonite script (http://ammonite.io/) - run as follow 'amm scriptname.sc'

    implicit class SuperRichString(in:String) { def truc = in.size/2}
  10. dacr renamed this gist Apr 5, 2021. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    // summary : implicit class scala feature.
    // keywords : scala, language-feature, implicits, @testable
    // keywords : scala, language-feature, implicit-class, @testable
    // publish : gist
    // authors : David Crosson
    // license : Apache2
  11. dacr revised this gist Oct 9, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion scala-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    // keywords : scala, language-feature, implicits, @testable
    // publish : gist
    // authors : David Crosson
    // license : GPL
    // license : Apache2
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335
    // execution : scala ammonite script (http://ammonite.io/) - run as follow 'amm scriptname.sc'

  12. dacr revised this gist Oct 3, 2020. No changes.
  13. dacr revised this gist Jul 7, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion scala-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@
    // summary : implicit class scala feature.
    // keywords : scala, language-feature, implicits, @testable
    // publish : gist, snippet
    // publish : gist
    // authors : David Crosson
    // license : GPL
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335
    // execution : scala ammonite script (http://ammonite.io/) - run as follow 'amm scriptname.sc'

  14. dacr revised this gist Oct 3, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion scala-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    // summary : implicit class scala feature.
    // keywords : scala, language-feature, implicits
    // keywords : scala, language-feature, implicits, @testable
    // publish : gist, snippet
    // authors : David Crosson
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335
  15. dacr revised this gist Sep 11, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions scala-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,7 @@
    // publish : gist, snippet
    // authors : David Crosson
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335
    // execution : scala ammonite script (http://ammonite.io/) - run as follow 'amm scriptname.sc'

    implicit class SuperRichString(in:String) { def truc = in.size/2}
    println("hello".truc)
  16. dacr revised this gist Aug 29, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion scala-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // summary : implicit class scala feature.
    // keywords : scala, language-feature, implicits
    // publish : gist, snippet
    // authors : @crodav
    // authors : David Crosson
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335

    implicit class SuperRichString(in:String) { def truc = in.size/2}
  17. dacr revised this gist Aug 29, 2019. 1 changed file with 0 additions and 8 deletions.
    8 changes: 0 additions & 8 deletions scala-implicit-class.scala
    Original file line number Diff line number Diff line change
    @@ -1,8 +0,0 @@
    // summary : implicit class scala feature.
    // keywords : scala, language-feature, implicits
    // publish : gist, snippet
    // authors : david
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335

    implicit class SuperRichString(in:String) { def truc = in.size/2}
    println("hello".truc)
  18. dacr revised this gist Aug 29, 2019. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions scala-implicit-class.sc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    // summary : implicit class scala feature.
    // keywords : scala, language-feature, implicits
    // publish : gist, snippet
    // authors : @crodav
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335

    implicit class SuperRichString(in:String) { def truc = in.size/2}
    println("hello".truc)
  19. dacr created this gist Jun 5, 2019.
    8 changes: 8 additions & 0 deletions scala-implicit-class.scala
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    // summary : implicit class scala feature.
    // keywords : scala, language-feature, implicits
    // publish : gist, snippet
    // authors : david
    // id : 7c2fd589-a63b-4d76-bdf6-90c812f99335

    implicit class SuperRichString(in:String) { def truc = in.size/2}
    println("hello".truc)