o_e Posted February 18 Share Posted February 18 Hi, I'am examing find-bar and I don't get the following: ;from the docs: (setf mat '((c4 db4 ab4 f4 g4 bb4) (a4 eb4 b4 e4 d4 gb4) (db4 ab4 f4 g4 bb4 a4) (eb4 b4 e4 d4 gb4 c4))) (find-bar 1 mat) => Error: The value (1) is not of the expected type number. > While executing: ccl::+-2-into, in process Listener-1(7). > Type cmd-. to abort, cmd-\ for a list of available restarts. > Type :? for other options. ;this works fine: (find-bar '(1) mat) =>((c4 db4 ab4 f4 g4 bb4)) ?? best ole Quote Link to post Share on other sites
o_e Posted Monday at 07:40 AM Author Share Posted Monday at 07:40 AM I know this is only a (very) minor issue, nevertheless I'd like to know if I'am the only one having this problem.. Thanks! Quote Link to post Share on other sites
AM Posted Monday at 09:06 AM Share Posted Monday at 09:06 AM you have to put the bar-numbers into a list... i makes sense in my opinion - perhaps you want to "find" more then one bar... (find-bar '(1 2) mat) => ((c4 db4 ab4 f4 g4 bb4) (a4 eb4 b4 e4 d4 gb4)) Quote Link to post Share on other sites
o_e Posted Monday at 03:33 PM Author Share Posted Monday at 03:33 PM exactly that's what I've shown in my first post But most of the function work as well with an 'naked' integer as with a quoted list, and like this it is described in the doc of 'find-bar'. I assume it should be consistent among the functions, thats why I've pointed it out.. Quote Link to post Share on other sites
AM Posted Monday at 05:28 PM Share Posted Monday at 05:28 PM i know i'm not a programmer, but it probably makes sense to be able to enter both variants/formats for some functions, but not for others... Quote Link to post Share on other sites
opmo Posted Monday at 05:39 PM Share Posted Monday at 05:39 PM Is fixed already with FT function inside - next update. (ft '(1 3 6..9 11)) => (1 3 6 7 8 9 11) (ft '0..12) => (0 1 2 3 4 5 6 7 8 9 10 11 12) (ft '0..-12) => (0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12) (ft '(1 3 6..9 11)) => (1 3 6 7 8 9 11) (ft '(0..12 11..0)) => (0 1 2 3 4 5 6 7 8 9 10 11 12 11 10 9 8 7 6 5 4 3 2 1 0) o_e 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.