Skip to content

Instantly share code, notes, and snippets.

Created Jun 2, 2016
Embed
What would you like to do?
the description for this gist
val program: (Position => Free[Instruction, Position] = {
start: Position =>
for {
p1 <- forward(start, 10)
p2 <- right(p1, Degree(90))
p3 <- forward(p2, 10)
} yield p3
}
@vlfig
Copy link

vlfig commented Aug 15, 2016

type of program is (Position) => Free[Instruction, Position]. You're missing a closing parenthesis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment