<commit_before># Fragment Args

*Fragment arguments without ceremony thanks to delegated properties.*

### Example

```kotlin
class YourFragment : Fragment() {

    var someRequiredId: Int by arg()
    var optionalArg: String? by argOrNull()

    private fun yourMethod() = yourCode()
}

fun createYourFragment(someId: Int): Fragment = YourFragment().apply {
    someRequiredId = someId
}
```

## Download

```groovy
implementation "com.louiscad.splitties:splitties-fragments:$splitties_version"
```<commit_msg>Fix artifact name in fragmentargs/README.md<commit_after># Fragment Args

*Fragment arguments without ceremony thanks to delegated properties.*

### Example

```kotlin
class YourFragment : Fragment() {

    var someRequiredId: Int by arg()
    var optionalArg: String? by argOrNull()

    private fun yourMethod() = yourCode()
}

fun createYourFragment(someId: Int): Fragment = YourFragment().apply {
    someRequiredId = someId
}
```

## Download

```groovy
implementation "com.louiscad.splitties:splitties-fragmentargs:$splitties_version"
```
{'fraction_non_alphanumeric': 0.11563981042654028, 'fraction_numerical': 0.0, 'mean_word_length': 5.2485207100591715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '883245', 'n_tokens_mistral': 332, 'n_tokens_neox': 306, 'n_words': 86}