o_e Posted February 18, 2021 Share Posted February 18, 2021 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 comment Share on other sites More sharing options...
o_e Posted February 22, 2021 Author Share Posted February 22, 2021 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 comment Share on other sites More sharing options...
AM Posted February 22, 2021 Share Posted February 22, 2021 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 comment Share on other sites More sharing options...
o_e Posted February 22, 2021 Author Share Posted February 22, 2021 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 comment Share on other sites More sharing options...
AM Posted February 22, 2021 Share Posted February 22, 2021 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 comment Share on other sites More sharing options...
opmo Posted February 22, 2021 Share Posted February 22, 2021 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 comment Share on other sites More sharing options...
opmo Posted March 2, 2021 Share Posted March 2, 2021 Fixed in 2.1.26251 Quote Link to comment Share on other sites More sharing options...
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.