Clarifying bitvector-pad Shiro Kawai (27 Aug 2023 23:30 UTC)
Re: Clarifying bitvector-pad John Cowan (28 Aug 2023 07:26 UTC)
Re: Clarifying bitvector-pad Wolfgang Corcoran-Mathe (28 Aug 2023 16:33 UTC)
Re: Clarifying bitvector-pad Wolfgang Corcoran-Mathe (28 Aug 2023 19:11 UTC)
Re: Clarifying bitvector-pad Shiro Kawai (28 Aug 2023 22:56 UTC)
Re: Clarifying bitvector-pad Wolfgang Corcoran-Mathe (29 Aug 2023 00:31 UTC)

Re: Clarifying bitvector-pad Wolfgang Corcoran-Mathe 28 Aug 2023 19:11 UTC

Sorry. I realize that Shiro already posed the same question.

While string-pad is precedent, I wonder if "pad" is the right name
for a procedure that may truncate a bitvector. "Padding" suggests
to me that the result will always be at least as long as the input.
Unless the name is changed, I lean toward returning the input vector
or making it an error if *length* is less than input length.

--
Wolfgang Corcoran-Mathe  <xxxxxx@sigwinch.xyz>