Closed LuKuangChen closed 3 years ago
Doc and implementation mismatch.
The smol/fun doc is clear that "pair is a special-case [two-element] of ivec", and writes
smol/fun
(left expr) → Any expr : Pair
However, the implementation of left and right do not enforce this specification (expr : Pair):
left
right
expr : Pair
> (left (ivec 0)) 0 > (right (ivec 0 1 2)) 1 >
These two functions should check their arguments.
Doc and implementation mismatch.
The
smol/fun
doc is clear that "pair is a special-case [two-element] of ivec", and writesHowever, the implementation of
left
andright
do not enforce this specification (expr : Pair
):