// PascalABC.NET
function func(s: string; ds: HashSet<char>): string;
begin
var p := ds.Select(c -> c + '').ToArray;
Result := s.Remove(p)
end;
func('hello vasiliy', ['l','a']).Print
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
// PascalABC.NET
function func(s: string; ds: HashSet<char>): string;
begin
var p := ds.Select(c -> c + '').ToArray;
Result := s.Remove(p)
end;
begin
func('hello vasiliy', ['l','a']).Print
end.