On 02/01/2014, at 1:24 PM, srean wrote:
> thanks, that should be enough to get started.
>
> My first reaction after looking at the proc handle_cmd (b:string) was does'nt
> Felix do pattern matching on strings ? I head over to the docs to check,
You didn't actually TRY it? What are you an anti-RTFM guy? :)
proc f (x:string)
{
match x with
| "Hello" => println$ "HELLO";
| _ => println$ "OTHER";
endmatch;
}
f "other";
f "Hello";
--
john skaller
[email protected]
http://felix-lang.org
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language