AndyM to Concatenative ProgrammingEnglish · 2 months agoDesigning Code For Forward Progressrtpg.coexternal-linkmessage-square1fedilinkarrow-up12arrow-down10file-text
arrow-up12arrow-down1external-linkDesigning Code For Forward Progressrtpg.coAndyM to Concatenative ProgrammingEnglish · 2 months agomessage-square1fedilinkfile-text
minus-squareAndyOPMlinkfedilinkEnglisharrow-up1·2 months agoThe given Uiua example (mercifully given using words rather than the symbols): [3 4 5 10 23] divide length on /+ For all the talk about “forward” it’s uncomfortable to me how the Uiua evaluation within a line happens backward. An equivalent in Factor, where keep is close to on: { 3 4 5 10 23 } [ sum ] keep length / But this pattern of doing two things in sequence to the same item is common enough that bi is handy: { 3 4 5 10 23 } [ sum ] [ length ] bi /
The given Uiua example (mercifully given using words rather than the symbols):
For all the talk about “forward” it’s uncomfortable to me how the Uiua evaluation within a line happens backward.
An equivalent in Factor, where
keep
is close toon
:But this pattern of doing two things in sequence to the same item is common enough that
bi
is handy: