[29] Results

Javascript : Empty an array example

javascript empty-array pop-array

Problem :

You have an array in JavaScript and you need to empty it. How to do that?

For instance….... read more

Swift : Convert string array to array example

swift convert-array string-array stringByTrimmingCharactersInSet

Problem :

You have a string array and you want to convert it to array. How to do that?

Solution….... read more

Golang : Iterate map

golang iterate string array

Got a question by a friend asking how to how to iterate through a map in Golang today. Thought that….... read more

Golang : Squaring elements in array

golang square elements array

Problem :

You need to calculate the square values of the elements in an array or slice.

Solution :

.... read more

Golang : Map within a map example

golang map array

Just an example of map within map in Golang. The example below demonstrates how to put declare a map with….... read more

Golang : How to iterate over a []string(array)

golang iterate string array

Sometimes the easiest thing to do is the hardest thing to remember... like how to iterate through a string array.….... read more

Golang : 2 dimensional array example

golang array 2-dimensional

An example of how to create 2 dimensional array in Golang. Since arrays are fixed size construct, we must specify….... read more

Golang : Array mapping with Interface

golang interface map array

New comers to Golang often have slight difficulty understanding how interface works in Golang. This is a simple tutorial to….... read more