You should use something like the maybe function to extract it after you've returned the Just value.

On Wed, Apr 22, 2015 at 10:38 AM, Shishir Srivastava <shishir.srivastava@gmail.com> wrote:
Thanks ! that does work now. 

My next question was how do i only get "34" or "3" i.e. the Maybe value without wrapped in to a 'Maybe' ?

Shishir 


_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners