Snippets of the day – Monday, February 3, 2014

Posted on Posted in Snippets


Here are some of the most recently published snippets!

Define arrays using templates in Typescript

You can now define an array using the template feature in Typescript. Be aware this way to build array is just a compile time ‘type annotation’ used to check type validity when using the array.

Open the snippet

Author:    micurs

Listing all the files in all directories

Open the snippet

Author:    Mk47

Join a string array in java

If we join an array like this [“a”, “b”, “c”] with the separator “: “, we have as a result:
“a: b :c”

Open the snippet

Author:    mporru

Leave a Reply

Your email address will not be published. Required fields are marked *