Timeline for Alternative to FreeQ as functional programming
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 28, 2018 at 7:16 | vote | accept | MaPo | ||
Feb 17, 2017 at 15:56 | comment | added | Mr.Wizard | @MaPo If you find my answer fully satisfactory please consider accepting it. If you do not please tell me what remains unaddressed and I shall try to improve it. | |
Jan 25, 2017 at 19:20 | answer | added | MaPo | timeline score: 1 | |
Jan 25, 2017 at 19:19 | answer | added | Mr.Wizard | timeline score: 6 | |
Jan 25, 2017 at 19:08 | comment | added | MaPo | I know, but in my case I cannot do because the function ToAvoid must be present for other reason in other part of my code. And which is more important, at any point I must be able to declare other variables to avoid. | |
Jan 25, 2017 at 19:03 | comment | added | Carl Woll |
You have to insert it some time, and with ConstQ = FreeQ[a|c] you only do it once. Then you can do ConstQ[CentralDot[1,2]], ConstQ[CentralDot[a,c]] and get True , False .
|
|
Jan 25, 2017 at 18:56 | comment | added | MaPo | No, because I must insert manually the variable a and c, ad I do not want to. | |
Jan 25, 2017 at 18:56 | comment | added | Carl Woll |
Does ConstQ = FreeQ[a|c] do what you want?
|
|
Jan 25, 2017 at 18:53 | comment | added | MaPo | @MarcoB I edited the question! | |
Jan 25, 2017 at 18:53 | history | edited | MaPo | CC BY-SA 3.0 |
added 514 characters in body
|
Jan 25, 2017 at 18:43 | comment | added | MarcoB | How should your function know which variables to avoid? Could you give us an example of usage of such a function, i.e. the input you expect to give it, and the output you expect to receive? | |
Jan 25, 2017 at 18:39 | history | asked | MaPo | CC BY-SA 3.0 |