ilo 26.5.0

ilo - the token-minimal programming language AI agents write
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- hex-rev: reverse byte order of a hex-encoded string.
-- Useful for little-endian <-> big-endian conversions (e.g. Bitcoin txids).

-- Reverse a 4-byte (8-char) hex string.
flip4 s:t>t;hex-rev s

-- round-trip: double reversal is identity
roundtrip s:t>t;hex-rev (hex-rev s)

-- run: flip4 "12345678"
-- out: 78563412
-- run: flip4 "deadbeef"
-- out: efbeadde
-- run: roundtrip "aabbccdd"
-- out: aabbccdd