My Scala Sed project: More features, returning strings
My Scala Sed project: More features, returning strings By Alvin Alexander. Last updated: July 11 2019 Table of Contents Basic use Using a Map Match expressions Sed limitations My Sed project Bonus:...
View ArticleScala: How to use regex pattern matching in a match expression
Scala: How to use regex pattern matching in a match expression By Alvin Alexander. Last updated: July 11 2019 Scala FAQ: How can I use regular expression (regex) pattern matching in a match expression...
View ArticleA little Scala `sed` class
A little Scala `sed` class By Alvin Alexander. Last updated: July 6 2019 A few times during the past year I got tired of trying to remember the Unix/Linux sed syntax while wanting to make edits to...
View ArticleKaleidoscope, a Scala pattern-matching library
Kaleidoscope, a Scala pattern-matching library By Alvin Alexander. Last updated: February 9 2019 URL https://github.com/propensive/kaleidoscope Read more about Kaleidoscope, a Scala pattern-matching...
View ArticleScala/Java: How to write a pattern that matches a minimum to maximum number...
Scala/Java: How to write a pattern that matches a minimum to maximum number of specified characters By Alvin Alexander. Last updated: April 24 2018 If you’re using Java or Scala and need to write a...
View ArticleScala: How to convert multiple spaces to a single space (regex)
Scala: How to convert multiple spaces to a single space (regex) By Alvin Alexander. Last updated: November 30 2017 Here’s a quick Scala example that shows how to convert multiple spaces in a string to...
View ArticleHow to write “If string starts with” in Drupal 8 Twig templates
How to write “If string starts with” in Drupal 8 Twig templates By Alvin Alexander. Last updated: July 30 2017 If you ever need to write a “string starts with” comparison in Drupal 8 Twig templates, I...
View ArticleA Quick Review of Scala’s Case Classes
This is a page from my book, Functional Programming, Simplified A Quick Review of Scala’s Case Classes “The biggest advantage of case classes is that they support pattern matching.” Programming in...
View ArticleThe Rust programming language
The Rust programming language By Alvin Alexander. Last updated: August 2 2016 Read more about The Rust programming language If you haven’t seen the Rust programming language before, this image shows...
View ArticleScala best practice: Use match expressions and pattern matching
Scala best practice: Use match expressions and pattern matching By Alvin Alexander. Last updated: February 16 2018 This is an excerpt from the Scala Cookbook (partially modified for the internet)....
View Article