<commit_before>---
layout: post
title: "Kotlin (Array)"
category: programming
tags: kotlin
published: false
summary: kotlin array
---

### [Kotlin Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/)

In Kotlin Array<String> is still generated as Object[String]

inline functions support reified type parameters to avoid using reflection using class references

> This function has a reified type parameter and thus can only be inlined at compilation time, not called directly.
<commit_msg>Update 2016-07-11-Kotlin-Arrays.md<commit_after>---
layout: post
title: "Kotlin (Array)"
category: programming
tags: kotlin
published: false
summary: kotlin array
---

### [Kotlin Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/)

In Kotlin Array<String> is still generated as Object[String]

inline functions support reified type parameters to avoid using reflection using class references

> This function has a reified type parameter and thus can only be inlined at compilation time, not called directly.

### 2d array of String

<script src="https://gist.github.com/griffio/0394829a2ec8e1877c7eaa55dce7b6d4.js"></script>
{'fraction_non_alphanumeric': 0.0993897122929381, 'fraction_numerical': 0.024411508282476024, 'mean_word_length': 5.13903743315508, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2211853', 'n_tokens_mistral': 363, 'n_tokens_neox': 341, 'n_words': 121}