---
title: "Discussion on \"Anonymous function in BrightScript\" | Hashnode"
description: "Discussion on \"Anonymous function in BrightScript\". Not the prettiest code but if you must use anonymous function as a function argument in BrightScript you can. This would be the equivalent to JavaScript Arrow Function.\n' This function applies a passed function to an argument  '\napply = function ( a,..."
url: "https://hashnode.com/posts/anonymous-function-in-brightscript/6797124e12614d39db0dc532"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Anonymous function in BrightScript](https://blog.brightscripters.com/anonymous-function-in-brightscript?utm_source=hashnode&utm_medium=feed)

Not the prettiest code but if you must use anonymous function as a function argument in BrightScript you can. This would be the equivalent to JavaScript Arrow Function. ' This function applies a passed function to an argument ' apply = function ( a,...

Jan 27, 2025 · 1 min read · blog.brightscripters.com  
Read the article

-   [#brightscript](https://hashnode.com/tag/brightscript)

## Written by

[Bright Scripters](https://hashnode.com/@BrightScripters)

@BrightScripters · USA

  
[View profile](https://hashnode.com/@BrightScripters)

Taking BrightSign programming to the next level

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
