# Genetic Algorithms in Elixir: Usage of charlists (page 49)

**URL:** <https://forum.devtalk.com/t/genetic-algorithms-in-elixir-usage-of-charlists-page-49/66475>\
**Category:** PragProg Customers\
**Tags:** book-genetic-algorithms-in-elixir, errata\
**Created:** [29 July 2022 13:16 UTC](https://forum.devtalk.com/t/genetic-algorithms-in-elixir-usage-of-charlists-page-49/66475 "2022-07-29T13:16:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ream88](https://forum.devtalk.com/user_avatar/forum.devtalk.com/ream88/32/4382_2.png) [@ream88](https://forum.devtalk.com/u/ream88)\
**Post date:** [29 July 2022 13:16 UTC](https://forum.devtalk.com/t/genetic-algorithms-in-elixir-usage-of-charlists-page-49/66475/1 "2022-07-29T13:16:09Z")

</div>

### @seanmor5

In the code example on page 49, the `fitness_function` suddenly switches to using charlists instead of the previously used strings. This would just be a continuity error, but calling `String.jaro_distance/2` with two charlists is not valid afaik.
