I want to apply a function that returns
() on an Option and I miss an
inspect() method. There are many workarouds like :
matchbut it’s not “beautiful”
iter().inspect()but it’s a little verbose
mapbut it’s generally considered poor style in functional programming
What do you use ?