Skip to content

Using the constant function #1735

Discussion options

You must be logged in to vote

I'd say, you nearly gave the answer by your self: constant function returns Lazy<A>. In your first example the console.log("none") and console.log("some") will be executed instantly and their return values (void in this case) becomes lazy.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@samhh
Comment options

@vinicius98s
Comment options

Answer selected by vinicius98s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants