Tag Archives: string

Kotlin: Difference between Blank and Empty


Kotlin String has methods, isBlank() and isEmpty(). I wrote about their difference.

Continue reading Kotlin: Difference between Blank and Empty

Rails: Different Code according to the Environment


The code executes different method according to the environment, in Rails. In this way, you can show message only in development environment.

Continue reading Rails: Different Code according to the Environment

Kotlin: String Conversion – First Letter to Lower/Upper, Camel Case and Snake Case


I wrote the code to convert string in Kotlin. This time I tried the following 4 patterns.

  • Make first letter lower
  • Make first letter upper
  • Convert snake case string to camel case
  • Convert camel case string to snake case
Continue reading Kotlin: String Conversion – First Letter to Lower/Upper, Camel Case and Snake Case

How to Handle Cells with LibreOffice Calc Basic


This article explains how to handle cells with Basic in LibreOffice Calc, a free spreadsheet software. In Excel VBA, you can work with cells like Cell(1, 2).

Continue reading How to Handle Cells with LibreOffice Calc Basic

haskell split string by comma, into list


I’ll introduce to you, how to split string into list by comma, make "a,b,c" to ["a", "b", "c"].

Background

You know that there are some function like splitOn in Data.List.Split module, but import Data.List.Split didn’t work on Ideone. So, I, a haskell beginner, thought how to do it without other modules.

Split by comma

The following code do it. It split string, [Char] only by comma.

split "a,b,c" outputs ["a", "b", "c"].

Split by any delimiter

You can specify any delimiter with the following. The delimiter should be a Char.

split ' ' "a b c" outputs ["a", "b", "c"].