Hey Jake, NetLogo can only specify the list type of a parameter in the syntax, it doesn't have any way of specifying the types of the items inside the list. As such, if people don't pass you the expected values (a list of lists of numbers), it'll be up to your code to catch that and throw a runtime error.
The Matrix extension's `from-row-list` might be close to what you're thinking of: https://github.com/NetLogo/Matrix-Extension/blob/hexy/src/main/java/MatrixExtension.java#L652-L665, https://ccl.northwestern.edu/netlogo/docs/matrix.html#matrix:from-row-list So `matrix:from-row-list [ "a" "b" "c" ]` throws the error `Extension exception: To convert a nested list into a matrix, there must be exactly two levels of nesting -- e.g. [[1 2 3] [4 5 6]] creates a good 2x3 matrix. error while observer running MATRIX:FROM-ROW-LIST`. I hope that helps. -Jeremy On Thursday, April 11, 2019 at 4:38:19 AM UTC-5, Jake Saunders wrote: > > Hi > > I have second newbie question! > > The example i am taking inspiration from takes in a number and reports a > list of values(code seen below) > > *public Syntax getSyntax() {* > * return SyntaxJ.reporterSyntax(new int[] {Syntax.ListType()}, > Syntax.ListType());* > * }* > > How would i alter this to take in a list of lists in the format of ... > > [ [int int int] ... ] > > > Thank you in advance > > Jake > > > -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.