Commit 167a5e1
authored
fixes a bug in the KB update function, adds new functions (#1439)
The bug was a typo in the merge function that was manifested with the
`Failure "types are not equal"` exception.
The new functions, are
- `proceed ~until` as a dual to `guard`;
- `Value.is_empty` that returns `true` if a value is empty
- `Value.has` that checks if the specific property of the value is empty
The change also ensures that empty properties are not stored in
values (which also makes the `Value.is_empty` implementation trivial).1 parent 772d4a6 commit 167a5e1
2 files changed
+38
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1835 | 1835 | | |
1836 | 1836 | | |
1837 | 1837 | | |
1838 | | - | |
| 1838 | + | |
1839 | 1839 | | |
1840 | 1840 | | |
1841 | 1841 | | |
| |||
1853 | 1853 | | |
1854 | 1854 | | |
1855 | 1855 | | |
1856 | | - | |
| 1856 | + | |
1857 | 1857 | | |
1858 | 1858 | | |
1859 | 1859 | | |
| |||
1934 | 1934 | | |
1935 | 1935 | | |
1936 | 1936 | | |
| 1937 | + | |
1937 | 1938 | | |
1938 | 1939 | | |
1939 | 1940 | | |
| |||
2294 | 2295 | | |
2295 | 2296 | | |
2296 | 2297 | | |
| 2298 | + | |
| 2299 | + | |
2297 | 2300 | | |
2298 | 2301 | | |
2299 | 2302 | | |
2300 | 2303 | | |
2301 | 2304 | | |
2302 | 2305 | | |
2303 | 2306 | | |
2304 | | - | |
2305 | | - | |
2306 | | - | |
2307 | | - | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
2308 | 2313 | | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
2309 | 2317 | | |
2310 | 2318 | | |
2311 | 2319 | | |
| |||
2669 | 2677 | | |
2670 | 2678 | | |
2671 | 2679 | | |
| 2680 | + | |
2672 | 2681 | | |
2673 | 2682 | | |
2674 | 2683 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
332 | 342 | | |
333 | 343 | | |
334 | 344 | | |
| |||
886 | 896 | | |
887 | 897 | | |
888 | 898 | | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
889 | 906 | | |
890 | 907 | | |
891 | 908 | | |
| |||
941 | 958 | | |
942 | 959 | | |
943 | 960 | | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
944 | 967 | | |
945 | 968 | | |
946 | 969 | | |
| |||
0 commit comments