Julia Programming Language
Some questions about function (size(i::Int))
General Usage
function
Oscar_Smith
December 1, 2022, 1:41pm
2
It’s a local function definition. It’s the same as
function size(i::Int) return i==0 ? 3 : 4*i end
show post in topic
Related topics
Topic
Replies
Views
Activity
Function definition (unexpected functionality)
General Usage
10
1389
February 21, 2017
How does scope work for declaring functions
General Usage
scope
12
1241
January 22, 2018
Different compilation results for global and "local" functions
New to Julia
9
1184
May 21, 2017
Redefining functions inside loops
New to Julia
1
1143
April 4, 2019
Local function redefinition: feature or bug?
General Usage
3
1186
April 4, 2018