A block is the same thing as a method, but it does not belong to an object. Blocks are called closures in other programming languages. There are some important points about Blocks in crystal: Block can accept arguments and returns a value. ...
malloc.engineersnation.com5 min read
No responses yet.