Skip to content

Instantly share code, notes, and snippets.

@jabaraster
Last active August 16, 2019 00:10
Show Gist options
  • Save jabaraster/6463253ffd78083dc2516092d25a6a86 to your computer and use it in GitHub Desktop.
Save jabaraster/6463253ffd78083dc2516092d25a6a86 to your computer and use it in GitHub Desktop.
comma format for Int by Elm. required 'elm-community/list-split'
String.join "," << List.reverse << List.map String.fromList << List.Split.chunksOfRight 3 << String.toList << String.fromInt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment