Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Function Fun' topicStudent Support Forum > General > "Function Fun"

Next Comment >Help | Reply To Topic
Author Comment/Response
CCOsborn
11/12/12 1:56pm

Check this out:
funcTest[list_List, str_String, count_Integer] := list[[count]] = str

list1={a,b}

funcTest[list1,"Help",1]
Results in:
{a, b}
Set::setps: {a,b} in the part assignment is not a symbol. >>
Yet,
list1[[1]]="Help!!"
{Help!!,b}
Works. What is the problem?

URL: ,

Subject (listing for 'Function Fun')
Author Date Posted
Function Fun CCOsborn 11/12/12 1:56pm
Re: Function Fun Michael 11/12/12 9:02pm
Re: Function Fun Nasser M. Ab... 11/13/12 00:03am
Next Comment >Help | Reply To Topic