Welcome to the CHICKEN Scheme pasting service

no title added by alice on Wed Jul 31 06:26:51 2019

#;42> (define sixteen (<Just> 16))
#;43> (define div2 (lambda (n) (if (even? n) (<Just> (/ n 2)) <Nothing>)))
#;44> (from-just (>>= sixteen div2 div2 div2))
2
#;45> (from-just (>>= (<Just> 3) div2 div2 div2))

Error: from-just called on <Nothing>

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Type in the text below:
     _                _       
 ___| |_ ___ __ _  __| | ___  
/ __| __/ __/ _` |/ _` |/ _ \ 
\__ \ || (_| (_| | (_| | (_) |
|___/\__\___\__, |\__,_|\___/ 
               |_|            
Visually impaired? Let me spell it for you (wav file) download WAV