3 ms·
As I said, I am sure I can do it or find it in some library. But the integration of the APIs that Python has is missing. For example, I doubt your subseq works
by js8 10y ago
As I said, I am sure I can do it or find it in some library. But the integration of the APIs that Python has is missing. For example, I doubt your subseq works on strings (or bytestrings). But as I said, Python is IMHO the state of the art when it comes to PL usability (people have spent a lot of time thinking about use cases, sometimes at the expense of elegance or versatility), so no shame here.
- ScottBurson 10y ago> I doubt your subseq works on strings (or bytestrings) Actually, it does.
- lispm 10y ago> For example, I doubt your subseq works on strings (or bytestrings) Your view of Common Lisp seems to be created more by assumptions and not so by actual real limitations. Strings: CL-USER 10 > (subseq "xxfoobarxx" 2 8) "foobar" Any vector: CL-USER 11 > (subseq #(10 30 20 100 50 30 20 20) 2 8) #(20 100 50 30 20 20) Bitvector: CL-USER 12 > (subseq #*10101010010101001010101 2 8) #*101010