micahhahn/elm-safe-recursion

Elegant recursion without blowing the stack

ElmNix
This is stars and forks stats for /micahhahn/elm-safe-recursion repository. As of 06 May, 2024 this repository has 16 stars and 1 forks.

Safe and elegant recursion in Elm This package provides tools to use recursion safely in elm without sacrificing the elegance of general recursion. Example Imagine we have a generic tree type that we want to write a map function for: type Tree a = Leaf a | Node (Tree a) (Tree a) The safe solution to implement a map function using this library would look like the following: mapTree : (a -> b) -> Tree a -> Tree b mapTree f initTree = runRecursion (\tree -> case tree...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
digital-asset/docs.daml.comShellNix6020
eikek/sharryElmScalaNix6260440
mdgriffith/elm-codegenElmJavaScriptTypeScript131+113+1
solfacil/kaliNixElixir0000
fraidev/tornadoOCamlStandard MLNix57000
pta2002/nixvimNixPython4800780
coq/opam-coq-archiveOCamlShellMakefile10901350
ruHaskell-learn/lhxHaskellNix15040
otobrglez/dojodisScalaNix27020
aaronallen8455/breakpointHaskellNix41+310