You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==display(1)
Runtime error in _system_library
On line 189 at position 20
display(x.) = \join(expand(map(i -> ; :str(i), x)))
^
Improper number of arguments for function Function join @140628762953936-0
==display(1 2)
"1 2"
==display(1 2 3)
Runtime error in _system_library
On line 189 at position 20
display(x.) = \join(expand(map(i -> ; :str(i), x)))
^
Improper number of arguments for function Function join @140628762953936-0
I believe this is because join is being called directly, instead of being folded. It looks like join in the past used to be variadic, before reduce was removed. Perhaps join could be changed to
_join(a b) = if (!a b 'a:_join(\a b)) # current definition of join()
join(xs.) = foldr(_join [] xs)
Then display would be able to call join variadically, as it is now
The text was updated successfully, but these errors were encountered:
KevOrr
added a commit
to KevOrr/mathbot
that referenced
this issue
Jul 24, 2020
I believe this is because
join
is being called directly, instead of being folded. It looks likejoin
in the past used to be variadic, beforereduce
was removed. Perhapsjoin
could be changed toThen
display
would be able to calljoin
variadically, as it is nowThe text was updated successfully, but these errors were encountered: