サクサク読めて、アプリ限定の機能も多数!
return [*L, a] (https://wandbox.org/permlink/4KYH10bQvpqa4urt)の様に、引数で渡したリストを破壊しない設計であれば嵌らない落とし穴かと。(https://wandbox.org/permlink/PFZmv6dOVmIZVsCj となるのでデフォルト引数は関係ない問題かと)
sgo2 のブックマーク 2022/05/25 23:37
https://twitter.com/EzoeRyou/status/1529310828503044096return [*L, a] (<a href="https://wandbox.org/permlink/4KYH10bQvpqa4urt" target="_blank" rel="noopener nofollow">https://wandbox.org/permlink/4KYH10bQvpqa4urt</a>)の様に、引数で渡したリストを破壊しない設計であれば嵌らない落とし穴かと。(<a href="https://wandbox.org/permlink/PFZmv6dOVmIZVsCj" target="_blank" rel="noopener nofollow">https://wandbox.org/permlink/PFZmv6dOVmIZVsCj</a> となるのでデフォルト引数は関係ない問題かと)2022/05/25 23:37
return [*L, a] (<a href="https://wandbox.org/permlink/4KYH10bQvpqa4urt" target="_blank" rel="noopener nofollow">https://wandbox.org/permlink/4KYH10bQvpqa4urt</a>)の様に、引数で渡したリストを破壊しない設計であれば嵌らない落とし穴かと。(<a href="https://wandbox.org/permlink/PFZmv6dOVmIZVsCj" target="_blank" rel="noopener nofollow">https://wandbox.org/permlink/PFZmv6dOVmIZVsCj</a> となるのでデフォルト引数は関係ない問題かと)
このブックマークにはスターがありません。 最初のスターをつけてみよう!
twitter.com/EzoeRyou2022/05/25
54 人がブックマーク・12 件のコメント
\ コメントが サクサク読める アプリです /
return [*L, a] (https://wandbox.org/permlink/4KYH10bQvpqa4urt)の様に、引数で渡したリストを破壊しない設計であれば嵌らない落とし穴かと。(https://wandbox.org/permlink/PFZmv6dOVmIZVsCj となるのでデフォルト引数は関係ない問題かと)
sgo2 のブックマーク 2022/05/25 23:37
このブックマークにはスターがありません。
最初のスターをつけてみよう!
https://twitter.com/EzoeRyou/status/1529310828503044096
twitter.com/EzoeRyou2022/05/25
54 人がブックマーク・12 件のコメント
\ コメントが サクサク読める アプリです /