I also added first?, more? and last? as functions defined inside each? for the purposes of being able to format playground output more easily, but also so that "print in a loop" can work more nicely w/o having to use Array's join.
#array: module/extend[
Playground/dump: fn[
Playground .[
you each[
first?[ "/#[ " dump/string ]
dump more?[ ", " dump/string ]
last?[ " ]" dump/string ]
]
]
]
]
^ this is the code that's motivated this batch of changes. Takes me from an awkward "dump array like an object (which honestly kinda sucks)" to "Dump array as it's own literal", which I like quite a bit.
And I like more? as a way to do join-like things.
#StackTalk #yakshaving