isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
263 stars 57 forks source link

builtin "product"? (F <pfn> missing from docs) #178

Closed vendethiel closed 8 years ago

vendethiel commented 8 years ago

we have "s" as sum, but product is very useful as well. it'd be nice to have a builtin for it?

jakobkogler commented 8 years ago

You can do *F[2 3 5. This is already really short.

This obvioulsy doesn't handly the special case of an empty product.

vendethiel commented 8 years ago

This might be missing in the docs, no? I don't see a F <pfn>?

isaacg1 commented 8 years ago

Correct, it is missing in the docs. Will fix.

vendethiel commented 8 years ago

Thanks you :heart:

isaacg1 commented 8 years ago

Fixed.