You might be able to build one with reduce and fla...
# rx
a
You might be able to build one with reduce and flatten