• + 2 comments

    // More simplified :-D

        print(apples.filter({s...t ~= $0 + a}).count)
    
    print(oranges.filter({s...t ~= $0 + b}).count)