Mercurial > repos > tabletprog
view modules/option.tp @ 342:884cd5d54c0f
Bugfix to array find:withDefault and a small optimization to array map
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 05 Apr 2015 22:49:40 -0700 |
parents | 1458c069c715 |
children | fd4e0bf5bd9f |
line wrap: on
line source
{ _none <- #{ value:none <- :ifval :ifnone { ifnone: } value <- :ifval { self } value? <- { false } none? <- { true } } #{ value <- :v { #{ value:none <- :ifval :ifnone { ifval: v } value <- :ifval { option value: (ifval: ) } value? <- { true } none? <- { false } } } none <- { _none } } }