摘要:
Implement Replace<S, From, To> which replace the string From with To once in the given string S For example type replaced = Replace<'types are fun!', 阅读全文
摘要:
Implement Capitalize<T> which converts the first letter of a string to uppercase and leave the rest as-is. For example type capitalized = Capitalize<' 阅读全文
摘要:
ary := [...]int {1,2,3,4} // array sli := []int {1,2,3,4}// slice 阅读全文