Skip to content

Commit

Permalink
Update join() to take varargs
Browse files Browse the repository at this point in the history
  • Loading branch information
KevOrr authored Jul 24, 2020
1 parent b96b082 commit 6a7f8f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mathbot/calculator/library.c5
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ toarray(l) = array(expand(l))
_tolist(a o) = if (a _tolist(\a 'a:o) o)
tolist(a) = reverse(_tolist(a []))

join(a b) = if (!a b 'a:join(\a b))
_join(a b) = if (!a b 'a:_join(\a b))
join(xs.) = foldr(_join [] xs)

_merge(a b) = ifelse(
!a, b,
Expand Down

0 comments on commit 6a7f8f5

Please sign in to comment.