Fix validation error on attempting rebind in function arguments #106

Open
opened 2024-11-01 18:24:59 +00:00 by scott · 1 comment
Owner
No description provided.
Author
Owner
let size = 100
let sides = 4
let petals = 50

fn ngon! (sides, size) -> {
  repeat sides {
    fd! (size)
    rt! (inv (sides))
  }
}
=== === === Run 24
Validation error: name sides is already bound on line  of 
  on line 17 in input:
  >>> fn ngon! (sides, size) -> {
................^
Validation error: name size is already bound on line  of 
  on line 17 in input:
  >>> fn ngon! (sides, size) -> {
.......................^
``` let size = 100 let sides = 4 let petals = 50 fn ngon! (sides, size) -> { repeat sides { fd! (size) rt! (inv (sides)) } } ``` ``` === === === Run 24 Validation error: name sides is already bound on line of on line 17 in input: >>> fn ngon! (sides, size) -> { ................^ Validation error: name size is already bound on line of on line 17 in input: >>> fn ngon! (sides, size) -> { .......................^ ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: twc/ludus#106
No description provided.