Tags » Pattern Matching

Commit #6: Unwrapping Swift optionals

Note: This was written on Swift 2.2 – I’ll update this to Swift 3 when I got extra free time. Plus, if you’re itching to try the code, you could grab the… 1,323 more words


Improved Pattern Matching in Kotlin

Kotlin doesn’t have true pattern matching, and that’s fine. In order to make matchable classes in Scala, there is an awful lot of overhead required to make it work, and I highly respect Kotlin’s goal of not adding much overhead anywhere. 766 more words

Functional Programming

Pattern Review - Mccall 5466 View B (Pattern matching 101)

Why I bought this Pattern

I actually got this pattern for free when I registered on Printsew. I really liked the look of the styles and the plaid used on the cover so I knew I’d like to try to replicate that look. 406 more words

Pattern Review

Picking the Perfect Patterns

Today I want to talk about patterns and pattern matching. While this may seem like an overwhelming task to the uninitiated, it’s really very simple. But before we go into the… 524 more words


Pattern Matching and failing at adulting.

Have you ever felt like you were  failing at being an adult? I opened my e-mail today for the first time in about two weeks to find over 5000 waiting for me. 863 more words


The clock is ticking on the Ty Hafan challenge

It’s the final push on the Cardiff Fashion Week Ty Hafan now and the deadline is in 9 days! Everything’s taken me a lot longer than I expected so I am very behind on my plans but at least I started with the biggest, most difficult outfit first. 146 more words


PowerShell: pattern matching

Here, I am defining a hex character, as 1 of A-F (case insensitive) or 1 of 0-9. The format is no different from any other common Regex/pattern matching implementation: 316 more words