Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Creating a Rule in Code' topicStudent Support Forum > General > "Creating a Rule in Code"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
CCOsborn
11/12/12 11:06am

I created a function
funRule[st1,str2]:=Return[{str1/[Rule]str2}]

t99=funRule["a","b"]

Head[t99[[1]]]
The result is a "Rule"


URL: ,

Subject (listing for 'Creating a Rule in Code')
Author Date Posted
Creating a Rule in Code CCOsborn 11/11/12 09:27am
Re: Creating a Rule in Code jf 11/11/12 6:34pm
Re: Creating a Rule in Code CCOsborn 11/12/12 11:06am
Rule Patrick 11/18/12 08:12am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic