I’m still new and trying to create a list for use in a function and want to keep it as small as possible which happens to be logBase x y.
but I’m having trouble getting logBase into something I can use in this list.
[1 .. (logBase x y)]
Any suggestions?
You don’t post what type error you get, but I imagine it is something like this:
The problem is that:
returns a type in the Floating class, while other variables in your program (1, ‘x’, ‘y’) are of integral type.
I presume you want a sequence of Integers?
Use truncate, celing or floor.