codereport / jello

A Python script for wrapping Jellyfish (a fork of Jelly) so you can more easily play with the language.
MIT License
51 stars 5 forks source link

CHANGE: Functions should consistently return lists #38

Open codereport opened 6 months ago

codereport commented 6 months ago

For problem 16 in challenges, i_to_d . maxr max . each d_to_i sum the i_to_d function returns an integer for single digit integers but lists for integers >= 10. This is bad behaviour. We should modify to Jellyfish to have the consistent behaviour and always return lists.

UnrelatedString commented 5 months ago

This is not in fact the case--D outputs a singleton list as desired, but Jelly unwraps singleton lists when printing them. For accurate/unambiguous representations of values, I recommend getting in the habit of using ŒṘ.