This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Linq; | |
| using static System.Text.Encoding; | |
| public static class Program { | |
| public static void Main() | |
| { | |
| var result = IsPalindrome("racecar"); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main() { | |
| let result = is_palindrome("racecar"); // Should be true | |
| println!("{}", result); | |
| } | |
| fn is_palindrome(name: &str) -> bool { | |
| let half = name.len() / 2; | |
| name | |
| .bytes() | |
| .take(half) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace DaprKafkaDemo.Shared; | |
| public class ConfluentKafkaOptions | |
| { | |
| public const string ConfluentKafka = "ConfluentKafka"; | |
| public SchemaRegistry SchemaRegistry { get; set; } = new SchemaRegistry(); | |
| } | |
| public class SchemaRegistry |
OlderNewer