<commit_before># Sequency [![Travic CI](https://travis-ci.org/winterbe/sequency.svg?branch=master)](https://travis-ci.org/winterbe/sequency)

> Type-safe functional sequences for processing iterable data in TypeScript and JavaScript.

```js
asSequence(persons)
  .filterNot(it => it.age < 18)
  .flatMap(it => asSequence(it.children))
  .sorted(
    it => it.nullsLast()
      .thenBy(it => it.lastName)
      .thenBy(it => it.firstName)
      .thenByDescending(it => it.age)
  )
  .take(23)
  .toArray();
```

---
<commit_msg>Simplify sample<commit_after># Sequency [![Travic CI](https://travis-ci.org/winterbe/sequency.svg?branch=master)](https://travis-ci.org/winterbe/sequency)

> Type-safe functional sequences for processing iterable data in TypeScript and JavaScript.

```js
asSequence(persons)
  .filterNot(it => it.age < 18)
  .flatMap(it => asSequence(it.children))
  .sorted(
    it => it.nullsLast()
      .thenBy("lastName")
      .thenBy("firstName")
      .thenByDescending("age")
  )
  .take(23)
  .toArray();
```

---

{'fraction_non_alphanumeric': 0.1748792270531401, 'fraction_numerical': 0.007729468599033816, 'mean_word_length': 3.730593607305936, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, 'https://': 4, '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': '3328723', 'n_tokens_mistral': 392, 'n_tokens_neox': 379, 'n_words': 64}