Sequencing Data With Lists in Elm

Murphy Randle
InstructorMurphy Randle

Share this video with your friends

Send Tweet

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).

Aldo Nievas
Aldo Nievas
~ 7 years ago

What editor are you using ?

Mike Schutte
Mike Schutte
~ 6 years ago

Fantastic!

Is there a reason you chose foldl as your find mechanism instead of first << filter? Just curious.

Suwigya Rathore
Suwigya Rathore
~ 6 years ago

which editor I am not getting auto format

Manuele
Manuele
~ 5 years ago

I had to replace toString with Debug.toString

Julio Graffin
Julio Graffin
~ 4 years ago

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?

Florian
Florian
~ 4 years ago

@Juliu Graffin this works in elm 0.19.1: text <| Debug.toString foo

Florian
Florian
~ 4 years ago

As for editor, try any editor that can work with a language server: https://github.com/iamcco/vim-language-server

(Vim, VSCode, Emacs...)