30秒学会 Dart 片段 – isAnagram
Checks if a string is an anagram of another string (case-insensitive, ignores spaces, punctuation an...
Checks if a string is an anagram of another string (case-insensitive, ignores spaces, punctuation an...
Returns the symmetric difference between two lists, without filtering out duplicate values. Use Iter...
Returns the head of a list. Check if lst has a non-zero length, use lst[0] if possible to return the...
Pads a string on both sides with the specified padding, if it’s shorter than the specified len...
Returns true if two lists contain the same elements regardless of order, false otherwise. Use the pl...
Decapitalizes the first letter of a string. Use String.toLowerCase() to decapitalize first letter an...
Checks if a string is lower case. Convert the given string to lower case, using String.toLowerCase()...
Splits a multiline string into a list of lines. Use String.split() and a regular expression to match...
Creates a list of elements, grouped based on the position in the original lists. Use List.generate()...
Returns the average value of a list of numbers. Use Iterable.reduce() to get the sum of all the numb...