it's not as terse as your function for this use ca...
# stdlib
j
it's not as terse as your function for this use case, but its more generally applicable