Lists are used in Elm to represent sequences of data. The List library comes with a toolbox of useful functions. Here we cover list transformation (map), and getting single values from lists (fold).
What editor are you using ?
Is there a reason you chose
foldl as your find mechanism instead of
first << filter? Just curious.
which editor I am not getting auto format
I had to replace toString with Debug.toString
I'm using 0.19 and getting error when trying to use toString, and actually should work with String.fromInt or Float, but it doesn't =/ What should I do?
@Juliu Graffin this works in elm 0.19.1: text <| Debug.toString foo
As for editor, try any editor that can work with a language server: https://github.com/iamcco/vim-language-server
(Vim, VSCode, Emacs...)