上一页 1 ··· 104 105 106 107 108 109 110 111 112 ··· 492 下一页
摘要: TypeScript 4.0 is recommended in this challenge Implement a generic Pop<T> that takes an Array T and returns an Array without it's last element. For e 阅读全文
posted @ 2022-09-09 14:21 Zhentiw 阅读(28) 评论(0) 推荐(0)
摘要: TypeScript 4.0 is recommended in this challenge Implement a generic Last<T> that takes an Array T and returns its last element. For example type arr1 阅读全文
posted @ 2022-09-09 14:16 Zhentiw 阅读(26) 评论(0) 推荐(0)
摘要: Scan reads user input Takes a pointer as an argument Typed data is written to pointer Return number of scanned items var appleNum int fmt.Printf("Numb 阅读全文
posted @ 2022-09-08 18:07 Zhentiw 阅读(22) 评论(0) 推荐(0)
摘要: iota Generate a set of related but distinct constants Often represents a property which has several distinct possible values Dyas of the week Months o 阅读全文
posted @ 2022-09-08 15:08 Zhentiw 阅读(18) 评论(0) 推荐(0)
摘要: namespace AllGreetings { export namespace Greetings { export function returnGreeting (greeting: string) { console.log(`The message from namespace Gree 阅读全文
posted @ 2022-09-08 14:54 Zhentiw 阅读(65) 评论(0) 推荐(0)
摘要: Chainable options are commonly used in Javascript. But when we switch to TypeScript, can you properly type it? In this challenge, you need to type an 阅读全文
posted @ 2022-09-08 14:34 Zhentiw 阅读(84) 评论(0) 推荐(0)
摘要: Implement a generic TupleToUnion<T> which covers the values of a tuple to its values union. For example type Arr = ['1', '2', '3'] type Test = TupleTo 阅读全文
posted @ 2022-09-08 13:44 Zhentiw 阅读(46) 评论(0) 推荐(0)
摘要: Implement a generic DeepReadonly<T> which make every parameter of an object - and its sub-objects recursively - readonly. You can assume that we are o 阅读全文
posted @ 2022-09-08 02:44 Zhentiw 阅读(66) 评论(0) 推荐(0)
摘要: Implement a generic MyReadonly2<T, K> which takes two type argument T and K. K specify the set of properties of T that should set to Readonly. When K  阅读全文
posted @ 2022-09-08 02:28 Zhentiw 阅读(32) 评论(0) 推荐(0)
摘要: Stack is dedicated to function Local variables are store in stack Deallocated after function completes Heap is persisten Carbage Collections Go is a c 阅读全文
posted @ 2022-09-07 16:17 Zhentiw 阅读(19) 评论(0) 推荐(0)
上一页 1 ··· 104 105 106 107 108 109 110 111 112 ··· 492 下一页