Skip to content

wznmickey/elm-for

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-for

Brief introduction

This package provides for function like that in other languages.

A function f will repeat several times. It can receive the index in the for function so that every time f is repeated, it can output different values.

Example

    For.for
        0
        10
        (\i ( list, added ) ->
            ( (i
                + added
              )
                :: list
            , added
            )
        )
        ( []
        , 10
        )
        == ( [ 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10 ], 10 )

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages