MostlyAdequate / mostly-adequate-guide

Mostly adequate guide to FP (in javascript)
Other
23.43k stars 1.87k forks source link

[Chapter 12] sequence got undefined #525

Closed xielehe closed 5 years ago

xielehe commented 5 years ago

I'm very thankful for this resource.I run following codes in the terminal, got undefined. const { Maybe, sequence, List } = require('@mostly-adequate/support'); console.log(sequence(List.of, Maybe.of(['the facts']))) Am I wrong?

KtorZ commented 5 years ago

Hey! It appear that a return statement was missing for the sequence function on Maybe. This was recently fixed. May you try with @mostly-adequate/support@2.0.1 ?

xielehe commented 5 years ago

@KtorZ Thank you very much, I learn a lot from your book.

KtorZ commented 5 years ago

Appreciated! I am forwarding your thank you to @DrBoolean, the original author of the book :smile: