kikulikov
kikulikov

Reputation: 2583

What does <<>> mean in Erlang code?

In some code I have seen something like this

{ok, Req2} = cowboy_req:reply(200, [], <<"Hello World!">>, Req),

I can't find out what does those <<>> mean.. Thank you.

Upvotes: 2

Views: 516

Answers (2)

rvirding
rvirding

Reputation: 20916

In Erlang in they refer to binaries/bitstrings, see Bit Strings and Binaries and Bit Syntax Expressions.

Upvotes: 7

ghik
ghik

Reputation: 10764

This is for creating binary sequences. See relevant documentation.

Upvotes: 1

Related Questions