1. 学习
  2. /
  3. 课程
  4. /
  5. Intermediate Julia

Connected

练习

Splat unpacking

The splat operator ... is a powerful operator in Julia that can be used to unpack an iterable. This is a less cumbersome and cleaner way to quickly unpack an iterable, where you would otherwise need to use a loop.

In this example, use the splat operator to unpack a range to a vector instead of using a loop.

说明

100 XP
  • Use the splat operator to unpack the range my_range to a vector.