# Chapter 8 shortened closures

**URL:** <https://forums.kodeco.com/t/chapter-8-shortened-closures/138181>\
**Category:** Swift Apprentice\
**Created:** [April 20, 2021, 1:32pm UTC](https://forums.kodeco.com/t/chapter-8-shortened-closures/138181 "2021-04-20T13:32:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawi552](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/pawi552/32/102075_2.png) [@pawi552](https://forums.kodeco.com/u/pawi552)\
**Post date:** [April 20, 2021, 1:32pm UTC](https://forums.kodeco.com/t/chapter-8-shortened-closures/138181/1 "2021-04-20T13:32:21Z")

</div>

```
var multiplyClosure = { (a, b) in
    a*b
}

```

Is causing error “Ambiguous use of operator ‘\*’”

Same error for

```
var multiplyClousure = {

    $0 * $1

}

```

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [July 1, 2021, 2:00am UTC](https://forums.kodeco.com/t/chapter-8-shortened-closures/138181/2 "2021-07-01T02:00:18Z")

</div>

@pawi552 Thanks very much for your question!

Most likely you’re getting the error because you have not identified what type “a” and “b” are. There is nothing to indicate that they can be multiplied. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [October 4, 2021, 5:32am UTC](https://forums.kodeco.com/t/chapter-8-shortened-closures/138181/3 "2021-10-04T05:32:48Z")

</div>

Closed on October 4, 2021, 5:32am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
