Core.float.of: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/core.bend as Core Lines 84-89 of yaml-for-bend@0.1.1.0/core.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/core.bend&start_line=84&end_line=89 import Base import yaml-for-bend@0.1.1.0/re.bend as R # A float's text, if +s+ is one: as written, or ".inf", "-.inf", ".nan". def float.of(+s: String) -> Maybe<&2, String>: +u = unsigned(s) Bool.pick(Maybe<&2, String>, is_inf(u), Some{Bool.pick(String, is_neg(s), "-.inf", ".inf")}, Bool.pick(Maybe<&2, String>, is_nan(s), Some{".nan"}, Bool.pick(Maybe<&2, String>, R.matches(float.pat(), s), Some{s}, None{}))) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/core.bend&name=float.pat https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/core.bend&name=is_inf https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/core.bend&name=is_nan https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/core.bend&name=is_neg https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/core.bend&name=unsigned https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/re.bend&name=matches