Created
May 1, 2020 14:29
-
-
Save philipschwarz/ad752ae951a69dda68280d9cd9bdcbec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base.List.map : (a ->{๐} b) -> [a] ->{๐} [b] | |
base.List.map f a = | |
go i as acc = | |
match List.at i as with | |
None -> acc | |
Some a -> | |
use Nat + | |
go (i + 1) as (acc :+ f a) | |
go 0 a [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment