Commit Graph

2 Commits

Author SHA1 Message Date
Sassa NF
c5ac3896fb Factor out detection + display loop
Refactor code that does not depend on y.

Essentially, the following logic:

Recall that some loops are folds, some are maps.

Maps look at only elements with one index. The important property of maps
is that map(f . g) = map(f) . map(g) - parts of the loop body can be split
into separate loops. Another property of maps is that if map(f) does not
depend on the output of map(g), then map(f) . map(g) = map(g) . map(f) -
the loops can be reordered.
2024-09-23 08:32:29 +01:00
Egor Shitikov
ea319a6cac Refactor RSSI Scan 2024-09-19 16:00:38 -07:00