"dog is animal" を、"animal is dog"に入れ替えたいとき、take関数とdrop関数だけを使って入れ替えることはできますか?
「dog」 は take 3 "dog is animal" 、「animal」 は drop 7 "dog is animal" で取り出せることは分かったのですが、真ん中の「is」を取り出す方法がわかりません。
あなたの回答
tips
プレビュー
投稿2022/03/14 18:55
"dog is animal" を、"animal is dog"に入れ替えたいとき、take関数とdrop関数だけを使って入れ替えることはできますか?
「dog」 は take 3 "dog is animal" 、「animal」 は drop 7 "dog is animal" で取り出せることは分かったのですが、真ん中の「is」を取り出す方法がわかりません。
あなたの回答
tips
プレビュー