Skip to content

Instantly share code, notes, and snippets.

@thosakwe
Created May 20, 2020 14:42
Show Gist options
  • Save thosakwe/7abae52a9a9ee60bc3d297f83f2c1c4e to your computer and use it in GitHub Desktop.
Save thosakwe/7abae52a9a9ee60bc3d297f83f2c1c4e to your computer and use it in GitHub Desktop.
cascada
import <http>
func WrapNum(value) -> { value }
timesTwo = .value * 2
print(timesTwo(WrapNum(2)).value)
srv = HttpServer(ctx {
{req, res} = ctx
})
srv.listen(3000)
nums = [1 .. 3].map(WrapNum).map(.value * 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment