# Functions taking only Proof/View Arguments

**URL:** <https://discourse.ats-lang.org/t/functions-taking-only-proof-view-arguments/237>\
**Category:** Google Group\
**Created:** [August 13, 2013, 7:15pm UTC](https://discourse.ats-lang.org/t/functions-taking-only-proof-view-arguments/237 "2013-08-13T19:15:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steinwaywhw](https://sea1.discourse-cdn.com/flex019/user_avatar/discourse.ats-lang.org/steinwaywhw/32/2_2.png) [@steinwaywhw](https://discourse.ats-lang.org/u/steinwaywhw)\
**Post date:** [August 13, 2013, 7:15pm UTC](https://discourse.ats-lang.org/t/functions-taking-only-proof-view-arguments/237/1 "2013-08-13T19:15:05Z")

</div>

Hello,

For general functions taking a view part and a non-view part, it looks like

fun foobar (pf: someview | a: sometype): sometype

What if it has only the view part? I tried this thing and it works, but the  
syntax looks a little weird. Is it the right way of doing so? Just leave it  
blank?

fun foobar (pf: someview | ): sometype

implement main () = …  
…  
val t = foobar (pf | )  
…

Just wanna make sure.  
Thank you!

---

<div class="post-metadata">

**Author:** ![gmhwxi](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gmhwxi](https://discourse.ats-lang.org/u/gmhwxi)\
**Post date:** [August 13, 2013, 7:28pm UTC](https://discourse.ats-lang.org/t/functions-taking-only-proof-view-arguments/237/2 "2013-08-13T19:28:39Z")

</div>

The syntax is correct.

I often do something like:

val … = foo (pf | (_none_))

---

<div class="post-metadata">

**Author:** ![steinwaywhw](https://sea1.discourse-cdn.com/flex019/user_avatar/discourse.ats-lang.org/steinwaywhw/32/2_2.png) [@steinwaywhw](https://discourse.ats-lang.org/u/steinwaywhw)\
**Post date:** [August 13, 2013, 7:34pm UTC](https://discourse.ats-lang.org/t/functions-taking-only-proof-view-arguments/237/3 "2013-08-13T19:34:29Z")

</div>

Oh, OK. Thanks for your answer!
